mirror of
https://github.com/rasterio/rasterio.git
synced 2025-12-08 17:36:12 +00:00
Merge pull request #250 from mwtoews/setuptools
Use setuptools>=0.9.8 since earlier versions don't Cythonize C files
This commit is contained in:
commit
10ce9009ff
@ -6,5 +6,5 @@ delocate
|
||||
enum34
|
||||
numpy>=1.8.0
|
||||
pytest
|
||||
setuptools
|
||||
setuptools>=0.9.8
|
||||
wheel
|
||||
|
||||
11
setup.py
11
setup.py
@ -11,16 +11,21 @@
|
||||
|
||||
import logging
|
||||
import os
|
||||
import pprint
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
from setuptools import setup
|
||||
|
||||
from distutils.extension import Extension
|
||||
from setuptools import setup
|
||||
from setuptools.extension import Extension
|
||||
|
||||
logging.basicConfig()
|
||||
log = logging.getLogger()
|
||||
|
||||
# python -W all setup.py ...
|
||||
if 'all' in sys.warnoptions:
|
||||
log.level = logging.DEBUG
|
||||
|
||||
# Parse the version from the fiona module.
|
||||
with open('rasterio/__init__.py') as f:
|
||||
for line in f:
|
||||
@ -104,6 +109,8 @@ ext_options = dict(
|
||||
libraries=libraries,
|
||||
extra_link_args=extra_link_args)
|
||||
|
||||
log.debug('ext_options:\n%s', pprint.pformat(ext_options))
|
||||
|
||||
# When building from a repo, Cython is required.
|
||||
if os.path.exists("MANIFEST.in") and "clean" not in sys.argv:
|
||||
log.info("MANIFEST.in found, presume a repo, cythonizing...")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user