Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[v1.9.x] Fix CD for pypi wheel version #20782

Merged
merged 4 commits into from
Dec 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 3 additions & 8 deletions ci/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,15 +273,10 @@ def container_run(platform: str,
# mount mxnet/build for storing build
'-v', "{}:/work/build".format(local_build_folder),
'-v', "{}:/work/ccache".format(local_ccache_dir),
'-u', '{}:{}'.format(os.getuid(), os.getgid()),
'-e', 'CCACHE_MAXSIZE={}'.format(environment['CCACHE_MAXSIZE']),
# temp dir should be local and not shared
'-e', 'CCACHE_TEMPDIR={}'.format(environment['CCACHE_TEMPDIR']),
# this path is inside the container as /work/ccache is mounted
'-e', "CCACHE_DIR={}".format(environment['CCACHE_DIR']),
# a container-scoped log, useful for ccache verification.
'-e', "CCACHE_LOGFILE={}".format(environment['CCACHE_LOGFILE']),
'-u', '{}:{}'.format(os.getuid(), os.getgid())
]
for e in environment.keys():
docker_arg_list += ['-e', '{}={}'.format(e, environment[e])]
docker_arg_list += [tag]
docker_arg_list.extend(command)

Expand Down
2 changes: 1 addition & 1 deletion tools/pip/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
__version__ = libinfo['__version__']

# set by the CD pipeline
is_release = os.environ.get("IS_RELEASE", "").strip()
is_release = (os.environ.get("RELEASE_BUILD", "false").strip().lower() == "true")

# set by the travis build pipeline
travis_tag = os.environ.get("TRAVIS_TAG", "").strip()
Expand Down