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

[Ctypes] TVB-2719 Add ability to specify if faces' vertices are 1-indexed #44

Open
wants to merge 9 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ __pycache__/

# Distribution / packaging
dist/
*.egg-info
build/

# coverage file
.coverage
Expand All @@ -26,7 +28,10 @@ env
# Executables
*.out
*.exe
*.o

# Shared object files
*.so
*.pyd
*.dylib
*.dll
15 changes: 11 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,31 @@ notifications:
email: false

install:
- pip install .
- python setup.py build_ext --inplace
- pip3 install .
script:
- pip install pytest~=3.6.1
- pytest
- pip3 install pytest pytest-cov
- pytest --cov=gdist

jobs:
include:
- name: "Python 3.8 on Xenial Linux"
language: python
python: 3.8
before_install: pip3 install codecov
after_success: codecov
- name: "Python 3.7.4 on macOS"
os: osx
osx_image: xcode11.2
language: shell
- name: "Python 3.8.0 on Windows"
os: windows
language: shell
before_install:
- choco install python --version 3.8.0
- python -m pip install --upgrade pip
- python -m pip install -U pip
- pip install --user wheel
- ./create_dll.bat
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
- stage: lint
language: python
Expand Down
47 changes: 47 additions & 0 deletions create_dll.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
echo on

if NOT DEFINED VCINSTALLDIR (
if exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" (
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
echo "USING VISUAL STUDIO 17"
)
)

if NOT DEFINED VCINSTALLDIR (
if exist "C:\Program Files (x86)\Microsoft Visual Studio 15.0\VC\vcvarsall.bat" (
call "C:\Program Files (x86)\Microsoft Visual Studio 15.0\VC\vcvarsall.bat" amd64
echo "USING VISUAL STUDIO 15"
)
)

if NOT DEFINED VCINSTALLDIR (
if exist "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" (
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
echo "USING VISUAL STUDIO 14"
)
)

if NOT DEFINED VCINSTALLDIR (
if exist "C:\Program Files (x86)\Microsoft Visual Studio 13.0\VC\vcvarsall.bat" (
call "C:\Program Files (x86)\Microsoft Visual Studio 13.0\VC\vcvarsall.bat" amd64
echo "USING VISUAL STUDIO 13"
)
)

if NOT DEFINED VCINSTALLDIR (
if exist "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" (
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
echo "USING VISUAL STUDIO 12"
)
)

if NOT DEFINED VCINSTALLDIR (
echo "No compatible visual studio found! run vcvarsall.bat first!"
)

mkdir build\lib.win32

cd build\lib.win32

cl.exe /LD /DDLL_EXPORTS /DNDEBUG ..\..\gdist_c_api.cpp
ls
Loading