forked from mhogg/pyoctree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyoctree_build.bat
33 lines (23 loc) · 1.01 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
REM Python 2.7
REM ----------
REM Set variables for Microsoft Visual Studio for Python 2.7
@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)
SET DISTUTILS_USE_SDK=1
SET MSSdk=1
REM Cythonize pyx file to cpp (for users without Cython installed)
cython pyoctree\pyoctree.pyx --cplus
REM Build source + Python 2.7 wheel - With openmp
python setup.py sdist bdist_wheel --openmp
REM Python 3.6
REM ----------
REM Activate Python 3.6
@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 Build Python 3.6 wheel - With openmp
python setup.py bdist_wheel --openmp
REM Upload entire dist folder to PyPi
REM ---------------------------------
REM Upload to PyPi
REM twine upload dist\*