opticspy / lightpipes

LightPipes for Python, "Pure Python version"
https://opticspy.github.io/lightpipes/
BSD 3-Clause "New" or "Revised" License
232 stars 54 forks source link

update build windows wheels #10

Closed guyskk closed 7 years ago

guyskk commented 7 years ago

I rewrite build windows wheels using https://conda.io/miniconda.html, it can build python2.7 and 3.5, 32bit and 64bit successfully in one command.

I fix the ImportError: DLL load failed by data_files in setup.py, it will copy the dll file to site-packages on installing.

Usage:

  1. install 32bit and 64 bit miniconda (whatever 2.7 and 3.5 is OK), it can be download from https://conda.io/miniconda.html
  2. install invoke using pip install invoke, whatever version python is OK
  3. modify tools/windows/tasks.py, change CONDA_32 and CONDA_64 to corresponding conda.exe in your system
  4. cd tools/windows and inv --echo build_all

To check out this pull request, see https://help.github.com/articles/checking-out-pull-requests-locally/

guyskk commented 7 years ago

I'm fail to build for py34 and py36 because vc++ compiler for them didn't installed in my system