-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathpyoctree_build.bat
37 lines (26 loc) · 1.16 KB
/
pyoctree_build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
REM Python 2.7
REM ----------
REM Set variables for Microsoft Visual Studio for Python 2.7
REM @call "C:\Users\michaelh3\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\vcvarsall.bat" amd64
REM Set environ as workaround for bugs (See http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat and http://bugs.python.org/issue23246)
REM SET DISTUTILS_USE_SDK=1
REM SET MSSdk=1
REM Cythonize pyx file to cpp (for users without Cython installed)
REM cython pyoctree\pyoctree.pyx --cplus
REM Build source + Python 2.7 wheel - With openmp
REM python setup.py sdist bdist_wheel --openmp
REM Python 3.6
REM ----------
REM Activate Python 3.6
REM @call activate python36
REM Set variables for Microsoft Visual Studio for Python 3.6
@call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
REM Cythonize pyx file to cpp (for users without Cython installed)
del pyoctree\pyoctree.cpp
cython pyoctree\pyoctree.pyx --cplus
REM Build Python 3.6 wheel - With openmp
python setup.py sdist bdist_wheel --openmp
REM Upload entire dist folder to PyPi
REM ---------------------------------
REM Upload to PyPi
twine upload dist\*