Skip to content

Commit fc94cad

Browse files
authored
Builde compatability for Python 3.6 on Windows 64 bit
1 parent 9e6dd5c commit fc94cad

9 files changed

+482
-431
lines changed

BUILDINFO.txt

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
1-
1) run guisetup
2-
2) DON'T CLEAN bdist.win32 or exe.win32-3.6
3-
3) run consetup
1+
Python 3.7 does not work yet with cx_Freeze!
2+
3+
0) setup python:
4+
- Use Python3.6 (amd64 for 64 bits systems;
5+
- Install cython, numpy, opencv, cx_freeze using
6+
pip install ... --user
7+
or
8+
download wheels for P3.6 and amd64 on:
9+
https://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv
10+
pip install ...
11+
12+
1) recompile RLE and TIS lib, see instruction in compileRLE.py and compileTIS.py
13+
14+
2) test environment by testing with
15+
go to PhotonSlicer source directory
16+
python PhotonSlicer.py --help
17+
18+
3) run guisetup
19+
4) DON'T CLEAN bdist.win32 or exe.win32-3.6
20+
5) run consetup
421

522
The ...GUI...msi can be run without displaying a console window
623
The ...Console...msi will always need a console window, but can direct its output to the console '-g False' or to the GUI '-g True'

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ The PhotonSlicer Converts STL (binary) files to Images or PhotonFile. It is prog
77
## Status
88

99
Not yet ready:
10-
- PhotonSlicer was optimized for speed using Cython. The install packages need to be rebuild and are not yet available.
10+
- PhotonSlicer was optimized for speed using Cython. Check if it is comparable to Anycubic Photon Slicer.
11+
- The install packages are rebuild but very large to unnecessary numpy.core dll's. Find a to exclude these from package.
1112
- Real life test with the produced photon files have to be done.
1213

1314
---

guisetup.py

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
################################
66
#
7-
#just build python guisetup.py build -b ..\ #Builds on the folder above
7+
#just build python guisetup.py build -b ..\ #Builds on the folder above
88
#build installer python guisetup.py build -b ..\ bdist_msi -d ..\ #Builds on the folder above
99
#
1010
################################
@@ -42,11 +42,44 @@
4242
# build_exe_options = {"packages": ["os", "numpy"],"include_files": [""], "include_msvcr" : True}
4343
PYTHON_INSTALL_DIR = os.path.dirname(os.path.dirname(os.__file__))
4444

45+
"""
46+
Following files are large and not necessary:
47+
["numpy/core/mkl_avx.dll",
48+
"numpy.core.mkl_avx2.dll",
49+
"numpy.core.mkl_avx512.dll",
50+
"numpy.core.mkl_avx512_mic.dll",
51+
"numpy.core.mkl_mc.dll",
52+
"numpy.core.mkl_mc2.dll",
53+
"numpy.core.mkl_mc3.dll",
54+
"numpy.core.vml_avx.dll",
55+
"numpy.core.vml_avx2.dll",
56+
"numpy.core.vml_avx512.dll",
57+
"numpy.core.vml_avx512_mic.dll",
58+
"numpy.core.mkl_vml_mc.dll",
59+
"numpy.core.mkl_vml_mc2.dll",
60+
"numpy.core.mkl_vml_mc3.dll",
61+
"numpy.core.svml_dispmd.dll"],
62+
"""
63+
4564
build_exe_options = {
4665
"packages": ["os", "numpy"],
4766
"include_msvcr" : True,
48-
"excludes":[],
49-
#"include_files": [""],
67+
"bin_excludes":["mkl_avx.dll",
68+
"mkl_avx2.dll",
69+
"mkl_avx512.dll",
70+
"mkl_avx512_mic.dll",
71+
"mkl_mc.dll",
72+
"mkl_mc2.dll",
73+
"mkl_mc3.dll",
74+
"vml_avx.dll",
75+
"vml_avx2.dll",
76+
"vml_avx512.dll",
77+
"vml_avx512_mic.dll",
78+
"mkl_vml_mc.dll",
79+
"mkl_vml_mc2.dll",
80+
"mkl_vml_mc3.dll",
81+
"svml_dispmd.dll"],
82+
"excludes":[""],
5083
"include_files":[
5184
os.path.join(PYTHON_INSTALL_DIR,'DLLs','tcl86t.dll'),
5285
os.path.join(PYTHON_INSTALL_DIR,'DLLs','tk86t.dll'),

rleEncode.c

Lines changed: 212 additions & 212 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rleEncode.cp36-win_amd64.pyd

43 KB
Binary file not shown.

rleEncode.cp37-win_amd64.pyd

43 KB
Binary file not shown.

triInSlice.c

Lines changed: 212 additions & 212 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

triInSlice.cp36-win_amd64.pyd

103 KB
Binary file not shown.

triInSlice.cp37-win_amd64.pyd

103 KB
Binary file not shown.

0 commit comments

Comments
 (0)