File tree Expand file tree Collapse file tree 8 files changed +13
-18
lines changed
bindings/python/pysurvive Expand file tree Collapse file tree 8 files changed +13
-18
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ before_deploy:
30
30
deploy :
31
31
- provider : releases
32
32
api_key : $GITHUB_TOKEN
33
+ file_glob : true
33
34
file :
34
35
- libsurvive-$TRAVIS_TAG-$TRAVIS_OS_NAME-$CONFIG$RELEASE_FILE_SUFFIX.zip
35
36
- dist/*.whl
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ file(GLOB REDIST_HEADERS
186
186
)
187
187
install (FILES ${REDIST_HEADERS} DESTINATION include /libsurvive/redist )
188
188
189
- if (PYTHON_GENERATED_DIR )
189
+ if (NOT WIN32 AND PYTHON_GENERATED_DIR )
190
190
find_package (Python3 COMPONENTS Interpreter Development )
191
191
find_program (CTYPESGEN ctypesgen REQUIRED )
192
192
Original file line number Diff line number Diff line change 1
1
r"""Wrapper for poser.h
2
2
3
3
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
5
5
6
6
Do not modify this file.
7
7
"""
Original file line number Diff line number Diff line change 2
2
dist .Distribution ().fetch_build_eggs (['wheel' , 'cmake_setuptools' ])
3
3
ctypesgen_install = dist .Distribution ().fetch_build_egg ('ctypesgen' )
4
4
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
-
17
5
dist .Distribution ().fetch_build_eggs (['cmake_setuptools' ])
18
6
19
7
from setuptools import setup
28
16
29
17
setup (name = 'pysurvive' ,
30
18
description = '' ,
31
- version = '0.0.1.dev0' ,
19
+ version = os . environ . get ( "TRAVIS_TAG" , "develop" ) ,
32
20
ext_modules = [CMakeExtension ('all' , sourcedir = '.' )],
33
21
packages = ['pysurvive' ],
34
22
package_dir = {'pysurvive' : 'bindings/python/pysurvive' },
Original file line number Diff line number Diff line change 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/*
Original file line number Diff line number Diff line change
1
+ set -o xtrace
2
+
1
3
virtualenv --python=python3 venv
2
4
source ./venv/bin/activate
3
5
python3 setup.py install bdist_wheel
Original file line number Diff line number Diff line change 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/*
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ set -o xtrace
3
3
# export VS160COMNTOOLS="/c/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/Tools"
4
4
export PATH=" /c/Python38/:/c/Python38/scripts:$PATH "
5
5
6
- python setup.py install
6
+ python setup.py install bdist_wheel
7
7
cd bindings/python
8
8
python ./example.py --simulator --simulator-time .1 --playback-factor 0
9
9
cd ../..
You can’t perform that action at this time.
0 commit comments