Skip to content

Commit 426b2a0

Browse files
committed
Release engineering fixes
1 parent b3cd437 commit 426b2a0

File tree

8 files changed

+13
-18
lines changed

8 files changed

+13
-18
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ before_deploy:
3030
deploy:
3131
- provider: releases
3232
api_key: $GITHUB_TOKEN
33+
file_glob: true
3334
file:
3435
- libsurvive-$TRAVIS_TAG-$TRAVIS_OS_NAME-$CONFIG$RELEASE_FILE_SUFFIX.zip
3536
- dist/*.whl

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ file(GLOB REDIST_HEADERS
186186
)
187187
install(FILES ${REDIST_HEADERS} DESTINATION include/libsurvive/redist)
188188

189-
if(PYTHON_GENERATED_DIR)
189+
if(NOT WIN32 AND PYTHON_GENERATED_DIR)
190190
find_package (Python3 COMPONENTS Interpreter Development)
191191
find_program(CTYPESGEN ctypesgen REQUIRED)
192192

bindings/python/pysurvive/pysurvive_generated.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
r"""Wrapper for poser.h
22
33
Generated with:
4-
/home/justin/anaconda3/bin/ctypesgen /home/justin/source/oss/libsurvive/include/libsurvive/poser.h /home/justin/source/oss/libsurvive/include/libsurvive/survive.h /home/justin/source/oss/libsurvive/include/libsurvive/survive_api.h /home/justin/source/oss/libsurvive/include/libsurvive/survive_hooks.h /home/justin/source/oss/libsurvive/include/libsurvive/survive_optimizer.h /home/justin/source/oss/libsurvive/include/libsurvive/survive_reproject.h /home/justin/source/oss/libsurvive/include/libsurvive/survive_reproject_gen2.h /home/justin/source/oss/libsurvive/include/libsurvive/survive_types.h -I/usr/local/include -I/home/justin/source/oss/libsurvive/redist -I/home/justin/source/oss/libsurvive/include/libsurvive -I/home/justin/source/oss/libsurvive/include --no-macros -L/home/justin/source/oss/libsurvive/build/lib.linux-x86_64-3.7 -llibsurvive.so --strip-prefix=survive_ -P Survive -o /home/justin/source/oss/libsurvive/bindings/python/pysurvive/pysurvive_generated.py
4+
/home/justin/source/oss/libsurvive/.eggs/ctypesgen-1.0.2-py3.7.egg/ctypesgen/ctypesgen /home/justin/source/oss/libsurvive/include/libsurvive/poser.h /home/justin/source/oss/libsurvive/include/libsurvive/survive.h /home/justin/source/oss/libsurvive/include/libsurvive/survive_api.h /home/justin/source/oss/libsurvive/include/libsurvive/survive_hooks.h /home/justin/source/oss/libsurvive/include/libsurvive/survive_optimizer.h /home/justin/source/oss/libsurvive/include/libsurvive/survive_reproject.h /home/justin/source/oss/libsurvive/include/libsurvive/survive_reproject_gen2.h /home/justin/source/oss/libsurvive/include/libsurvive/survive_types.h -I/usr/local/include -I/home/justin/source/oss/libsurvive/redist -I/home/justin/source/oss/libsurvive/include/libsurvive -I/home/justin/source/oss/libsurvive/include --no-macros -L/home/justin/source/oss/libsurvive/build/lib.linux-x86_64-3.7 -llibsurvive.so --strip-prefix=survive_ -P Survive -o /home/justin/source/oss/libsurvive/bindings/python/pysurvive/pysurvive_generated.py
55
66
Do not modify this file.
77
"""

setup.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,6 @@
22
dist.Distribution().fetch_build_eggs(['wheel', 'cmake_setuptools'])
33
ctypesgen_install = dist.Distribution().fetch_build_egg('ctypesgen')
44

5-
ctypesgen = open(ctypesgen_install.module_path + "/ctypesgen/ctypesgen", "w")
6-
print(ctypesgen, ctypesgen_install)
7-
ctypesgen.write('''
8-
import re
9-
import sys
10-
from ctypesgen.main import main
11-
if __name__ == '__main__':
12-
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
13-
sys.exit(main())
14-
''');
15-
ctypesgen.close()
16-
175
dist.Distribution().fetch_build_eggs(['cmake_setuptools'])
186

197
from setuptools import setup
@@ -28,7 +16,7 @@
2816

2917
setup(name='pysurvive',
3018
description='',
31-
version='0.0.1.dev0',
19+
version=os.environ.get("TRAVIS_TAG", "develop"),
3220
ext_modules=[CMakeExtension('all', sourcedir='.')],
3321
packages=['pysurvive'],
3422
package_dir={'pysurvive': 'bindings/python/pysurvive'},
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
7z a libsurvive-$TRAVIS_TAG-$TRAVIS_OS_NAME-$CONFIG$RELEASE_FILE_SUFFIX.zip ./bin/INSTALL_ROOT/* ./dist/pysurvive-*.egg
1+
set -o xtrace
2+
3+
7z a libsurvive-$TRAVIS_TAG-$TRAVIS_OS_NAME-$CONFIG$RELEASE_FILE_SUFFIX.zip ./bin/INSTALL_ROOT/*

useful_files/travis/linux.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
set -o xtrace
2+
13
virtualenv --python=python3 venv
24
source ./venv/bin/activate
35
python3 setup.py install bdist_wheel
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
7z a libsurvive-$TRAVIS_TAG-$TRAVIS_OS_NAME-$CONFIG.7z ./bin/INSTALL_ROOT/ ./*/pysurvive-*.egg
1+
set -o xtrace
2+
3+
7z a libsurvive-$TRAVIS_TAG-$TRAVIS_OS_NAME-$CONFIG.zip ./bin/INSTALL_ROOT/*

useful_files/travis/windows.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -o xtrace
33
#export VS160COMNTOOLS="/c/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/Tools"
44
export PATH="/c/Python38/:/c/Python38/scripts:$PATH"
55

6-
python setup.py install
6+
python setup.py install bdist_wheel
77
cd bindings/python
88
python ./example.py --simulator --simulator-time .1 --playback-factor 0
99
cd ../..

0 commit comments

Comments
 (0)