wafo-project / pywafo

Wave Analysis for Fatigue and Oceanography
http://www.maths.lth.se/matstat/wafo/
Other
94 stars 42 forks source link

Fix Windows build issues #29

Open davidovitch opened 8 years ago

davidovitch commented 8 years ago

The Windows build is currently broken due to various reasons and has to be fixed. Some of the challenges on Windows are mentioned in issue #14. Other related issues are #16, #26, #28. @pbrod @eelcovv @ocefpaf lets try to find a workable solution for the Windows build here. On both Linux and Windows issue #18 indicates something else is not entirely right in the current build procedure.

Things to do:

davidovitch commented 8 years ago

For Python 3.4 and with the Intel Fortran compiler, I have been able to get it to work when installing from the source directory with pip install -e ./. Here's the procedure I followed:

create and activate a python 3.4 environment

conda create -n py34 python=3.4
activate py34

install dependencies, when using pip use --no-deps to avoid pip updating conda packages:

conda install setuptools_scm future pytest nose sphinx coverage pbr
pip install --no-deps pyscaffold pytest-cov
conda install numpy scipy mpmath matplotlib
conda install -c omnia numdifftools

Compile Fortran sources with Intel, load the proper environment variables:

"C:\Program Files (x86)\Intel\Composer XE\bin\ifortvars.bat" intel64 vs2010

Build/install pywafo from the source directory. When I create wheel packages, the compiled extensions are not included (don't know why at this stage).

cd pywafo
pip install -e ./
fprabowo commented 7 years ago

Hi davidovitch,

Is it possible to use other compiler beside Intel Fortran, say gfortran?