Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.devtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.devtools
Commits
752b3116
Commit
752b3116
authored
6 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[build] packaging is not available on base env - go back to distutils LooseVersion
parent
8b2a97da
No related branches found
No related tags found
No related merge requests found
Pipeline
#26017
failed
6 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/devtools/build.py
+6
-3
6 additions, 3 deletions
bob/devtools/build.py
with
6 additions
and
3 deletions
bob/devtools/build.py
+
6
−
3
View file @
752b3116
...
@@ -22,7 +22,7 @@ import logging
...
@@ -22,7 +22,7 @@ import logging
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
import
yaml
import
yaml
import
packaging
import
distutils.version
import
conda_build.api
import
conda_build.api
...
@@ -276,8 +276,11 @@ if __name__ == '__main__':
...
@@ -276,8 +276,11 @@ if __name__ == '__main__':
logger
.
info
(
'
os.environ[
"
%s
"
] = %s
'
,
'
BOB_PACKAGE_VERSION
'
,
version
)
logger
.
info
(
'
os.environ[
"
%s
"
] = %s
'
,
'
BOB_PACKAGE_VERSION
'
,
version
)
# if we're build a stable release, ensure a tag is set
# if we're build a stable release, ensure a tag is set
parsed_version
=
packaging
.
version
.
Version
(
version
)
parsed_version
=
distutils
.
version
.
LooseVersion
(
version
).
version
if
parsed_version
.
is_prerelease
:
is_prerelease
=
'
a
'
in
parsed_version
or
\
'
b
'
in
parsed_version
or
\
'
c
'
in
parsed_version
if
is_prerelease
:
if
os
.
environ
.
get
(
'
CI_COMMIT_TAG
'
)
is
not
None
:
if
os
.
environ
.
get
(
'
CI_COMMIT_TAG
'
)
is
not
None
:
raise
EnvironmentError
(
'"
version.txt
"
indicates version is a
'
\
raise
EnvironmentError
(
'"
version.txt
"
indicates version is a
'
\
'
pre-release (v%s) - but os.environ[
"
CI_COMMIT_TAG
"
]=
"
%s
"
,
'
\
'
pre-release (v%s) - but os.environ[
"
CI_COMMIT_TAG
"
]=
"
%s
"
,
'
\
...
...
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