Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
dd90059
working on getting 'C' version for td04ad checked
repagh Jun 4, 2018
72a9875
test adding
repagh Jun 6, 2018
46171e5
work in progress
repagh Jun 14, 2018
f897e75
- corrected TD04AD.f to handle the case of 'C' and static gain tf
repagh Jun 15, 2018
3c6f49f
another fix
repagh Jun 15, 2018
253ed42
working TD04AD.f, does not crash any more on edge cases (N=0, NR=0),
repagh Jun 20, 2018
54f0510
fix conda recipe, anaconda 5
repagh Jun 22, 2018
a2298fd
delete separate build.sh/bld.bat
repagh Jun 23, 2018
6d30bd0
further testing
repagh Jun 26, 2018
f01ba18
- re-worked windows build to use Flang fortran and vc14 linkage
repagh Jun 26, 2018
a47bf6f
Merge remote-tracking branch 'python-control/master'
repagh Jul 1, 2018
b7d4048
Merge remote-tracking branch 'python-control/master'
repagh Jul 11, 2018
2ee5339
Conversion to building with scikit-build. Uses cmake for better
repagh Jul 11, 2018
be8cdfa
Add a comment on the many manual selections needed for Windows build.
repagh Jul 11, 2018
078b928
- install cmake and scikit-build with .travis.yml
repagh Jul 26, 2018
dc746ec
pip scikit-build to right location!
repagh Jul 26, 2018
0875919
hack a pip install for scikit-build
repagh Aug 14, 2018
01d85d3
- corrected link libraries for Linux in CMakeLists.txt
repagh Aug 15, 2018
84b4d4a
work in progress status
repagh Aug 15, 2018
0af0b31
- a working version? at least conda build succeeded once
repagh Aug 15, 2018
0b513ad
windows version seems to work now
repagh Aug 16, 2018
5738b11
environment variable use removed again
repagh Aug 16, 2018
04889ce
need fortran compiler env var
repagh Aug 16, 2018
790cc9e
Further tweaks, not works on OSX
repagh Aug 17, 2018
a237ce6
to be sure, also remove dependencies of scikit-build on windows
repagh Aug 17, 2018
d4df101
convert the build system to use scikit-build
repagh Aug 17, 2018
eae3c4b
Merge branch 'build-with-scikit-build' of https://github.com/repagh/S…
repagh Aug 17, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
- re-worked windows build to use Flang fortran and vc14 linkage
  • Loading branch information
repagh committed Jun 26, 2018
commit f01ba18b030b016f4794c3b6c4167a67105c8b03
17 changes: 17 additions & 0 deletions conda-recipe/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
:: Uncoment following two lines for local test build
cd %RECIPE_DIR%
cd ..

set F77=%BUILD_PREFIX%\Library\bin\flang.exe
set F90=%BUILD_PREFIX%\Library\bin\flang.exe

"%PYTHON%" setup.py build
"%PYTHON%" setup.py install

if errorlevel 1 exit 1

:: Add more build steps here, if they are necessary.

:: See
:: http://docs.continuum.io/conda/build.html
:: for a list of environment variables that are set during the build process.
2 changes: 2 additions & 0 deletions conda-recipe/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cd $RECIPE_DIR/..
$PYTHON setup.py install
17 changes: 7 additions & 10 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,25 @@ package:

build:
number: 1
script:
- cd {{ environ["RECIPE_DIR"] }}/.. # [not win]
- cd {{ environ["RECIPE_DIR"] }}\.. # [win]
- {{ environ["PYTHON"] }} setup.py install

requirements:
host:
- python
- numpy
- openblas
- libflang
- python

build:
- {{ compiler('fortran') }} # [not win]
- {{ compiler('c') }} # [win]
- m2w64-gcc-fortran # [win]

- flang # [win]
# on Windows, this relies on having visual studio CE 2015
# this link needed quite some searching, please do not delete!
# https://go.microsoft.com/fwlink/?LinkId=532606&clcid=0x409
run:
- python
- numpy
- openblas
- libgfortran # [not win]
- m2w64-gcc-libgfortran # [win]
- libflang # [win]

test:
imports:
Expand Down
12 changes: 5 additions & 7 deletions slycot/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ def configuration(parent_package='', top_path=None):
pyver = sysconfig.get_config_var('VERSION')

if sys.platform == 'win32':
liblist = [
'lapack', 'lapacke', 'blas', 'gfortran'
]
extra_objects = [
]
liblist = [ 'openblas', 'flang' ]
extra_objects = [ ]
ppath = os.sep.join(sys.executable.split(os.sep)[:-1])

library_dirs = [r'\Library\lib', ]
library_dirs = [ppath + l for l in library_dirs]
extra_link_args = [ ]
Expand All @@ -43,11 +41,11 @@ def configuration(parent_package='', top_path=None):
extra_objects = []
library_dirs = []
if sys.platform == 'darwin':
liblist = ['lapack', 'blas' ]
liblist = ['openblas' ]
extra_link_args = [ '-Wl,-dylib,-undefined,dynamic_lookup' ]
extra_compile_args = [ '-fPIC' ]
else:
liblist = ['lapack', 'blas', 'python'+pyver+abiflags ]
liblist = ['openblas']
extra_link_args = []
extra_compile_args = []

Expand Down