Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
mmtk
Commits
1b8ab430
Commit
1b8ab430
authored
Mar 27, 2018
by
Remi Perenon
Browse files
Corrections on setup file
parent
1eb24a00
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup.py
View file @
1b8ab430
...
...
@@ -38,7 +38,8 @@ include_dirs = ['Include']
python_version
=
'python%d.%d'
%
sys
.
version_info
[:
2
]
netcdf_h_search_paths
=
[
os
.
path
.
join
(
sys
.
prefix
,
'include'
,
'Scientific'
),
netcdf_h_search_paths
=
[
os
.
environ
.
get
(
'NETCDF_HEADER_FILE_PATH'
),
os
.
path
.
join
(
sys
.
prefix
,
'include'
,
'Scientific'
),
os
.
path
.
join
(
sys
.
prefix
,
'include'
,
python_version
,
'Scientific'
),
os
.
path
.
join
(
sys
.
prefix
,
'local'
,
'include'
,
python_version
,
'Scientific'
)]
...
...
@@ -52,7 +53,8 @@ for path in netcdf_h_search_paths:
break
if
netcdf_h
is
None
:
raise
FileError
(
"No suitable NetCDF header found."
)
print
(
"/!\ No suitable NetCDF header found."
)
sys
.
exit
(
1
)
compile_args
.
append
(
"-DNUMPY=1"
)
import
numpy.distutils.misc_util
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment