if force_setuptools: import setuptools # Import distutils _after_ potential setuptools import above, and after # removing MANIFEST from distutils.core import setup from distutils.extension import Extension from cythexts import cyproc_exts, get_pyx_sdist from setup_helpers import (install_scripts_bat, add_flag_checking, SetupDependency, read_vars_from, make_np_ext_builder) from version_helpers import get_comrec_build # Get version and release info, which is all stored in dipy/info.py info = read_vars_from(pjoin('dipy', 'info.py')) # We may just have imported setuptools, or we may have been exec'd from a # setuptools environment like pip using_setuptools = 'setuptools' in sys.modules extra_setuptools_args = {} if using_setuptools: # Try to preempt setuptools monkeypatching of Extension handling when Pyrex # is missing. Otherwise the monkeypatched Extension will change .pyx # filenames to .c filenames, and we probably don't have the .c files. sys.path.insert(0, pjoin(dirname(__file__), 'fake_pyrex')) # Set setuptools extra arguments extra_setuptools_args = dict(tests_require=['pytest'], zip_safe=False, extras_require=dict(doc=['Sphinx>=1.0'], test=['pytest']),
import setuptools # Package for getting versions from git tags import versioneer # Import distutils _after_ setuptools import, and after removing # MANIFEST from distutils.core import setup from distutils.extension import Extension from cythexts import cyproc_exts, get_pyx_sdist from setup_helpers import (SetupDependency, read_vars_from, make_np_ext_builder) # Get various parameters for this version, stored in selectinf/info.py info = read_vars_from(pjoin('selectinf', 'info.py')) # Try to preempt setuptools monkeypatching of Extension handling when Pyrex # is missing. Otherwise the monkeypatched Extension will change .pyx # filenames to .c filenames, and we probably don't have the .c files. sys.path.insert(0, pjoin(dirname(__file__), 'fake_pyrex')) # Set setuptools extra arguments extra_setuptools_args = dict(tests_require=['nose'], test_suite='nose.collector', zip_safe=False, extras_require=dict(doc=['Sphinx>=1.0'], test=['nose>=0.10.1'])) # Define extensions EXTS = [] for modulename, other_sources in (
if force_setuptools: import setuptools # Import distutils _after_ potential setuptools import above, and after removing # MANIFEST from distutils.core import setup from distutils.extension import Extension from cythexts import cyproc_exts, get_pyx_sdist from setup_helpers import (install_scripts_bat, add_flag_checking, SetupDependency, read_vars_from, make_np_ext_builder) from version_helpers import get_comrec_build # Get version and release info, which is all stored in dipy/info.py info = read_vars_from(pjoin('dipy', 'info.py')) # We may just have imported setuptools, or we may have been exec'd from a # setuptools environment like pip using_setuptools = 'setuptools' in sys.modules extra_setuptools_args = {} if using_setuptools: # Try to preempt setuptools monkeypatching of Extension handling when Pyrex # is missing. Otherwise the monkeypatched Extension will change .pyx # filenames to .c filenames, and we probably don't have the .c files. sys.path.insert(0, pjoin(dirname(__file__), 'fake_pyrex')) # Set setuptools extra arguments extra_setuptools_args = dict( tests_require=['nose'], test_suite='nose.collector', zip_safe=False,
import setuptools # Package for getting versions from git tags import versioneer # Import distutils _after_ setuptools import, and after removing # MANIFEST from distutils.core import setup from distutils.extension import Extension from cythexts import cyproc_exts, get_pyx_sdist from setup_helpers import (SetupDependency, read_vars_from, make_np_ext_builder) # Get various parameters for this version, stored in regreg/info.py info = read_vars_from(pjoin('regreg', 'info.py')) # Try to preempt setuptools monkeypatching of Extension handling when Pyrex # is missing. Otherwise the monkeypatched Extension will change .pyx # filenames to .c filenames, and we probably don't have the .c files. sys.path.insert(0, pjoin(dirname(__file__), 'fake_pyrex')) # Set setuptools extra arguments extra_setuptools_args = dict(tests_require=['nose'], test_suite='nose.collector', zip_safe=False, extras_require=dict(doc=['Sphinx>=1.0'], test=['nose>=0.10.1'])) # Define extensions EXTS = [] for modulename, other_sources in (('regreg.atoms.projl1_cython', []),
#!/usr/bin/env python """Installation script for the DWI_ML package.""" from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path from os.path import join as pjoin import glob from setup_helpers import read_vars_from # Read package information info = read_vars_from(pjoin('dwi_ml', 'info.py')) this_directory = path.abspath(path.dirname(__file__)) dwi_ml_readme_path = pjoin(this_directory, 'README.rst') with open(dwi_ml_readme_path, encoding='utf-8') as f: long_description = f.read() setup(name=info.NAME, version=info.VERSION, description=info.DESCRIPTION, long_description=long_description, long_description_content_type='text/x-rst', url=info.URL, project_urls={ 'Bug tracker': info.BUG_TRACKER, 'Documentation': info.DOCUMENTATION, 'Source code': info.SOURCE_CODE
# Unconditionally require setuptools import setuptools # Package for getting versions from git tags import versioneer # Import distutils _after_ setuptools import, and after removing # MANIFEST from distutils.core import setup from distutils.extension import Extension from cythexts import cyproc_exts, get_pyx_sdist from setup_helpers import SetupDependency, read_vars_from, make_np_ext_builder # Get version and release info, which is all stored in regreg/info.py info = read_vars_from(pjoin("regreg", "info.py")) # Try to preempt setuptools monkeypatching of Extension handling when Pyrex # is missing. Otherwise the monkeypatched Extension will change .pyx # filenames to .c filenames, and we probably don't have the .c files. sys.path.insert(0, pjoin(dirname(__file__), "fake_pyrex")) # Set setuptools extra arguments extra_setuptools_args = dict( tests_require=["nose"], test_suite="nose.collector", zip_safe=False, extras_require=dict(doc=["Sphinx>=1.0"], test=["nose>=0.10.1"]), ) # Define extensions EXTS = []
else: force_setuptools = False if force_setuptools: import setuptools # Import distutils _after_ potential setuptools import above, and after removing # MANIFEST from distutils.core import setup from distutils.extension import Extension from cythexts import cyproc_exts, get_pyx_sdist from setup_helpers import (read_vars_from, SetupDependency, process_deps) # Get version and release info, which is all stored in regreg/info.py info = read_vars_from(pjoin('regreg', 'info.py')) # We may just have imported setuptools, or we may have been exec'd from a # setuptools environment like pip using_setuptools = 'setuptools' in sys.modules extra_setuptools_args = {} if using_setuptools: # Try to preempt setuptools monkeypatching of Extension handling when Pyrex # is missing. Otherwise the monkeypatched Extension will change .pyx # filenames to .c filenames, and we probably don't have the .c files. sys.path.insert(0, pjoin(dirname(__file__), 'fake_pyrex')) # Set setuptools extra arguments extra_setuptools_args = dict( tests_require=['nose'], test_suite='nose.collector', zip_safe=False,