Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix binary wheel build step #39

Merged
merged 13 commits into from
Aug 9, 2020
31 changes: 23 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,34 @@

language: python
sudo: true
group: beta
dist: xenial
python:
- 2.7
- 3.5
script:
- ./setup.py test
- pip uninstall -y greenstack && ./setup.py develop && python -c "import v8py"

dist: trusty
sudo: false
group: beta
- 3.6
- 3.7

install:
- pip install twine pytest greenstack
- sudo apt update && sudo apt install patchelf
- pip install --upgrade pip && pip install twine pytest
# greenstack doesn't build for python 3.7 and above
tbodt marked this conversation as resolved.
Show resolved Hide resolved
- python -c "import sys; exit(1 if (sys.version_info.major, sys.version_info.minor) > (3, 6) else 0)" && pip install greenstack; true
# auditwheel is python 3 only, cheat a bit here
- ~/virtualenv/python3.6/bin/pip install auditwheel
- export CC=`pwd`/v8/third_party/llvm-build/Release+Asserts/bin/clang
- export CXX=`pwd`/v8/third_party/llvm-build/Release+Asserts/bin/clang++
- export CFLAGS='-g -O0 --coverage'

script:
- python ./setup.py bdist_wheel
- ~/virtualenv/python3.6/bin/auditwheel show dist/*.whl
- ~/virtualenv/python3.6/bin/auditwheel repair --plat manylinux2014_x86_64 dist/*.whl && rm -rf dist && mv wheelhouse dist
- pip install dist/*.whl
- pytest
- pip uninstall -y greenstack; python -c "import v8py"


# it takes ages to compile v8 so don't do it too often
cache:
directories:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def get_v8():
else:
print('updating depot tools')
with cd('depot_tools'):
run('git pull')
run('./update_depot_tools')

if not os.path.isdir('v8/.git'):
print('downloading v8')
Expand Down