This repository was archived by the owner on Aug 11, 2022. It is now read-only.
File tree 4 files changed +14
-4
lines changed
4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 18
18
19
19
install :
20
20
- pip install -e .[tests]
21
- - cmd : del *.pyd
22
- - cmd : python setup.py build_ext --inplace --compiler=mingw32
23
21
24
22
test_script : pytest -rsv
25
23
Original file line number Diff line number Diff line change
1
+ src /* linguist-vendored
2
+ reference /* linguist-vendored
3
+
1
4
.gitattributes text eol =lf
2
5
.gitignore text eol =lf
3
6
Makefile text eol =lf
Original file line number Diff line number Diff line change 2
2
[ ![ Coverage Status] ( https://coveralls.io/repos/github/scivision/iri90/badge.svg?branch=master )] ( https://coveralls.io/github/scivision/iri90?branch=master )
3
3
[ ![ Build status] ( https://ci.appveyor.com/api/projects/status/4h8pm345hscdpyf7?svg=true )] ( https://ci.appveyor.com/project/scivision/iri90 )
4
4
[ ![ PyPi version] ( https://img.shields.io/pypi/pyversions/iri90.svg )] ( https://pypi.python.org/pypi/iri90 )
5
- [ ![ PyPi formats] ( https://img.shields.io/pypi/format/iri90.svg )] ( https://pypi.python.org/pypi/iri90 )
6
5
[ ![ PyPi Download stats] ( http://pepy.tech/badge/iri90 )] ( http://pepy.tech/project/iri90 )
7
6
8
7
@@ -37,7 +36,7 @@ python -m pip install -e .
37
36
```
38
37
39
38
### Windows
40
- If you get ImportError on Windows for the Fortran module, try from the ` lowtran ` directory :
39
+ If you get ImportError on Windows for the Fortran module, try:
41
40
``` posh
42
41
del *.pyd
43
42
python setup.py build_ext --inplace --compiler=mingw32
Original file line number Diff line number Diff line change 3
3
from numpy .distutils .core import setup , Extension
4
4
from glob import glob
5
5
from os .path import join
6
+ from pathlib import Path
7
+ import os
8
+
9
+
10
+ if os .name == 'nt' :
11
+ sfn = Path (__file__ ).parent / 'setup.cfg'
12
+ stxt = sfn .read_text ()
13
+ if '[build_ext]' not in stxt :
14
+ with sfn .open ('a' ) as f :
15
+ f .write ("[build_ext]\n compiler = mingw32" )
6
16
7
17
# %% fortran data files
8
18
iridata = glob (join ('data' , '*.asc' ))
You can’t perform that action at this time.
0 commit comments