|
26 | 26 | """ |
27 | 27 |
|
28 | 28 | try: |
29 | | - from Cython.Build import build_ext as cython_build_ext |
30 | 29 | from Cython.Build import cythonize |
31 | 30 | HAVE_CYTHON = True |
32 | 31 | except ImportError: |
|
52 | 51 | # Try bootstrapping setuptools if it doesn't exist. This is for using the |
53 | 52 | # `develop` command, which is very useful for in-place development work. |
54 | 53 | try: |
55 | | - import pkg_resources |
56 | | - try: |
57 | | - pkg_resources.require("setuptools>=0.6c5") |
58 | | - except pkg_resources.VersionConflict: |
59 | | - from ez_setup import use_setuptools |
60 | | - use_setuptools(version="0.6c5") |
| 54 | + import setuptools |
61 | 55 | from setuptools import setup, Command |
62 | 56 | except ImportError: |
63 | 57 | sys.exit( |
|
68 | 62 | curdir = os.path.abspath(os.path.dirname(__file__)) |
69 | 63 |
|
70 | 64 | # These imports need to be here; setuptools needs to be imported first. |
71 | | -from distutils.extension import Extension # noqa: E402 |
72 | | -from distutils.command.build import build # noqa: E402 |
73 | | -from distutils.command.build_ext import build_ext # noqa: E402 |
74 | | -from distutils.command.sdist import sdist # noqa: E402 |
75 | | -import distutils.log |
76 | | - |
| 65 | +from setuptools.extension import Extension # noqa: E402 |
| 66 | +from setuptools.command.build import build # noqa: E402 |
| 67 | +from setuptools.command.build_ext import build_ext # noqa: E402 |
| 68 | +from setuptools.command.sdist import sdist # noqa: E402 |
| 69 | +import setuptools.logging |
| 70 | +setuptools.logging.configure() |
77 | 71 |
|
78 | 72 | MAJ = 0 |
79 | | -MIN = 11 |
| 73 | +MIN = 12 |
80 | 74 | REV = 0 |
81 | 75 | VERSION = '%d.%d.%d' % (MAJ, MIN, REV) |
82 | 76 |
|
@@ -209,7 +203,7 @@ def build_extensions(self): |
209 | 203 | ''') |
210 | 204 | self.announce( |
211 | 205 | "Trying to generate the following missing files:\n%s" % "\n".join(missing_src), |
212 | | - level=distutils.log.INFO) |
| 206 | + level=0) |
213 | 207 | for src in missing_src: |
214 | 208 | assert src in ext.sources |
215 | 209 | (root, extn) = os.path.splitext(src) |
@@ -266,7 +260,6 @@ def run(self): |
266 | 260 | } |
267 | 261 |
|
268 | 262 | if USE_CYTHON: |
269 | | - cmdclass['build_ext'] = cython_build_ext |
270 | 263 | cmdclass['cythonize'] = Cythonize |
271 | 264 | else: |
272 | 265 | cmdclass['build_ext'] = InformativeBuildExt |
@@ -296,7 +289,6 @@ def run(self): |
296 | 289 | long_description=README, |
297 | 290 | zip_safe=False, |
298 | 291 | setup_requires=[], |
299 | | - install_requires=['pysam', 'numpy'], |
300 | 292 | classifiers=[ |
301 | 293 | 'Development Status :: 5 - Production/Stable', |
302 | 294 | 'Intended Audience :: Science/Research', |
@@ -324,6 +316,5 @@ def run(self): |
324 | 316 | "*.h"], |
325 | 317 | 'src': ['src/*'], |
326 | 318 | }, |
327 | | - include_package_data=True, |
328 | | - language_level=2, |
| 319 | + include_package_data=True |
329 | 320 | ) |
0 commit comments