mirror of
https://github.com/rasterio/rasterio.git
synced 2026-02-01 14:34:43 +00:00
Omit cython extra_compile_args on Windows
This commit is contained in:
parent
b9ed3ef762
commit
4429c4442e
6
setup.py
6
setup.py
@ -125,12 +125,16 @@ if os.environ.get('PACKAGE_DATA'):
|
||||
copy_data_tree(projdatadir, 'rasterio/proj_data')
|
||||
|
||||
ext_options = dict(
|
||||
extra_compile_args=['-Wno-unused-parameter', '-Wno-unused-function'],
|
||||
include_dirs=include_dirs,
|
||||
library_dirs=library_dirs,
|
||||
libraries=libraries,
|
||||
extra_link_args=extra_link_args)
|
||||
|
||||
if not os.name == "nt":
|
||||
# These options fail on Windows if using Visual Studio
|
||||
ext_options['extra_compile_args'] = ['-Wno-unused-parameter',
|
||||
'-Wno-unused-function']
|
||||
|
||||
log.debug('ext_options:\n%s', pprint.pformat(ext_options))
|
||||
|
||||
# When building from a repo, Cython is required.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user