Skip to content

Commit

Permalink
appveyor: Add a flag to work with the new version of setuptools (v50.0)
Browse files Browse the repository at this point in the history
From the official documentation: "Once again, Setuptools overrides the
stdlib distutils on import. For environments or invocations where this
behavior is undesirable, users are provided with a temporary escape hatch.
 If the environment variable SETUPTOOLS_USE_DISTUTILS is set to stdlib,
Setuptools will fall back to the legacy behavior. Use of this escape
hatch is discouraged, but it is provided to ease the transition while
proper fixes for edge cases can be addressed."

Signed-off-by: Alexandra Trifan <Alexandra.Trifan@analog.com>
  • Loading branch information
AlexandraTrifan committed Sep 1, 2020
1 parent d58dbf4 commit dbb3e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CI/appveyor/build_appveyor_msvc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ __build_libm2k() {
cmake --build . --config Release

"$PY_PATH/python.exe" -m pip install --user --upgrade setuptools wheel
"$PY_PATH/python.exe" setup.py bdist_wininst
SETUPTOOLS_USE_DISTUTILS=stdlib "$PY_PATH/python.exe" setup.py bdist_wininst
"$PY_PATH/python.exe" setup.py sdist bdist_wheel --plat-name "$PLAT_NAME" --python-tag py"$PY_VERSION"
cp dist/libm2k-*.exe "/c/projects/libm2k/build-$PLATFORM/dist/libm2k-py$PY_VERSION-$PLATFORM.exe"
cp dist/libm2k-*.whl "/c/projects/libm2k/build-$PLATFORM/dist/"
Expand Down

0 comments on commit dbb3e4f

Please sign in to comment.