metadata['requires'] = ['numpy', 'scipy'] # not installing? if len(sys.argv) == 1 or (len(sys.argv) >= 2 and ('--help' in sys.argv[1:] or sys.argv[1] in ('--help-commands', '--version', 'clean'))): pass else: # setuptools>=2.2 can handle setup_requires metadata['setup_requires'] = [ 'numpy>=1.6.0', ] # when on git, we require cython if os.path.exists('.git'): warnings.warn('using git, require cython') metadata['setup_requires'] += ['cython>=0.22'] # only require numpy and extensions in case of building/installing metadata['ext_modules'] = lazy_cythonize(extensions) # add argparse to runtime deps if python version is 2.6 if sys.version_info[:2] == (2, 6): metadata['install_requires'] += ['argparse'] # include ipython notebooks. Will be installed directly in site-packages #metadata['packages'] += ['pyemma-ipython'] #metadata['include_package_data'] = True setup(**metadata)
('--help-commands', '--version', 'clean'))): pass else: # setuptools>=2.2 can handle setup_requires metadata['setup_requires'] = [ 'numpy>=1.7.0', 'mdtraj>=1.5.0', 'nose', ] if sys.version_info.major == 2: # kick it since causes headages with conda recently... #metadata['install_requires'] += ['mock'] pass metadata['package_data'] = { 'pyemma': ['pyemma.cfg', 'logging.yml'], 'pyemma.coordinates.tests': ['data/*'], 'pyemma.datasets': ['*.npz'], 'pyemma.util.tests': ['data/*'], } # when on git, we require cython if os.path.exists('.git'): warnings.warn('using git, require cython') metadata['setup_requires'] += ['cython>=0.22'] # only require numpy and extensions in case of building/installing metadata['ext_modules'] = lazy_cythonize(callback=extensions) setup(**metadata)
pass else: # setuptools>=2.2 can handle setup_requires metadata['setup_requires'] = ['numpy>=1.6.0', 'setuptools>3.6', 'mdtraj>=1.2.0', 'nose', ] # when on git, we require cython if os.path.exists('.git'): warnings.warn('using git, require cython') metadata['setup_requires'] += ['cython>=0.22'] # only require numpy and extensions in case of building/installing metadata['ext_modules'] = lazy_cythonize(extensions) # add argparse to runtime deps if python version is 2.6 if sys.version_info[:2] == (2, 6): metadata['install_requires'] += ['argparse'] # include ipython notebooks. Will be installed directly in site-packages metadata['packages'] += ['pyemma-ipython'] #metadata['include_package_data'] = True try: setup(**metadata) except VersionConflict as ve: print ve print "You need to manually upgrade your 'setuptools' installation!" " Please use these instructions to perform an upgrade and/or consult\n"