Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
Cabal
Commits
36bd5eba
Commit
36bd5eba
authored
4 years ago
by
Oleg Grenrus
Browse files
Options
Downloads
Patches
Plain Diff
Forward port release.py changes from 3.4
parent
cc7c4743
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
release.py
+13
-8
13 additions, 8 deletions
release.py
with
13 additions
and
8 deletions
release.py
+
13
−
8
View file @
36bd5eba
...
...
@@ -116,6 +116,13 @@ def step_config(args: Args):
if
platform
.
system
()
==
'
Linux
'
:
splitsections
=
'
split-sections: True
'
# https://github.com/Mistuke/CabalChoco/blob/d0e1d2fd8ce13ab4271c4b906ca0bde3b710a310/3.2.0.0/cabal/tools/chocolateyInstall.ps1#L289
extraprogpath
=
str
(
args
.
builddir
/
'
bin
'
)
if
platform
.
system
()
==
'
Windows
'
:
msysbin
=
Path
(
'
C:
\\
tools
\\
msys64
\\
usr
\\
bin
'
)
if
msysbin
.
is_dir
():
extraprogpath
=
extraprogpath
+
"
,
"
+
str
(
msysbin
)
config
=
dedent
(
f
"""
repository hackage.haskell.org
url: http://hackage.haskell.org/
...
...
@@ -131,12 +138,12 @@ def step_config(args: Args):
{
splitsections
}
build-summary:
{
args
.
builddir
}
/cabal/logs/build.log
extra-prog-path:
{
args
.
builddir
}
/bin
installdir:
{
args
.
builddir
}
/bin
logs-dir:
{
args
.
builddir
}
/cabal/logs
store-dir:
{
args
.
builddir
}
/cabal/store
symlink-bindir:
{
args
.
builddir
}
/bin
world-file:
{
args
.
builddir
}
/cabal/world
extra-prog-path:
{
extraprogpath
}
jobs: 1
...
...
@@ -163,13 +170,8 @@ def step_config(args: Args):
f
.
write
(
cabal_project_local
)
def
make_env
(
args
:
Args
):
path
=
os
.
environ
[
'
PATH
'
]
if
platform
.
system
()
==
'
Windows
'
:
msysbin
=
Path
(
'
C:
\\
tools
\\
msys64
\\
usr
\\
bin
'
)
if
msysbin
.
is_dir
():
path
=
path
+
"
;
"
+
str
(
msysbin
)
env
=
{
'
PATH
'
:
path
,
'
PATH
'
:
os
.
environ
[
'
PATH
'
]
,
'
CABAL_DIR
'
:
str
(
args
.
builddir
),
'
CABAL_CONFIG
'
:
str
(
args
.
builddir
/
'
cabal
'
/
'
config
'
),
}
...
...
@@ -185,7 +187,7 @@ def make_env(args: Args):
for
key
in
envvars
:
if
key
in
os
.
environ
:
env
[
key
]
=
os
.
environ
[
key
]
print
(
env
)
return
env
def
step_cabal_update
(
args
:
Args
):
...
...
@@ -225,6 +227,9 @@ def step_make_archive(args: Args):
name
=
archive_name
(
cabalversion
)
if
args
.
static
:
name
=
name
+
"
-static
"
if
not
args
.
ofdlocking
:
name
=
name
+
"
-noofd
"
basename
=
args
.
builddir
/
'
artifacts
'
/
name
# In temporary directory, create a directory which we will archive
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment