Skip to content

Commit

Permalink
Fixed release.sh and setup.py for Python
Browse files Browse the repository at this point in the history
Newer versions of virtualenv lack the --no-site-packages option, so I
had to remove it to keep the release.sh script working. I read that this
option has already been the default for a long time, so removing it
shouldn't chany any behavior.

For the setup.py script, I was getting some errors about the bdist_wheel
argument to setup.py, but I was able to fix that by adding 'wheel' to
setup_requires.
  • Loading branch information
acozzette committed Aug 7, 2020
1 parent 6b3a834 commit ff92cee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function run_install_test() {
local PYTHON=$2
local PYPI=$3

virtualenv --no-site-packages -p `which $PYTHON` test-venv
virtualenv -p `which $PYTHON` test-venv

# Intentionally put a broken protoc in the path to make sure installation
# doesn't require protoc installed.
Expand Down
1 change: 1 addition & 0 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ def get_option_from_sys_argv(option_str):
'build_py': build_py,
'test_conformance': test_conformance,
},
setup_requires = ['wheel'],
install_requires=install_requires,
ext_modules=ext_module_list,
)

0 comments on commit ff92cee

Please sign in to comment.