Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Remove the flag of use_2to3 in high version setuptools #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ build
MANIFEST
doc/_build
*~
doc/*.zip
doc/*.zip
*.egg-info
155 changes: 104 additions & 51 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,56 +12,109 @@
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()

extras = {}
if sys.version_info >= (3,):
extras['use_2to3'] = True
try:
extras = {}
if sys.version_info >= (3,):
extras['use_2to3'] = True

readme = 'README'

distutils.core.setup(
name='ad',
version='1.3.2',
author='Abraham Lee',
author_email='[email protected]',
description='Fast, transparent first- and second-order automatic differentiation',
url='http://pythonhosted.org/ad',
license='BSD License',
long_description=read(readme),
package_data={'': [readme]},
#include_package_data=True,
packages=['ad', 'ad.admath', 'ad.linalg'],
keywords=[
'automatic differentiation',
'first order',
'second order',
'derivative',
'algorithmic differentiation',
'computational differentiation',
'optimization',
'linear algebra'
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Topic :: Education',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities'
],
cmdclass={'build_py': build_py},
**extras
)
except:
extras = {}

readme = 'README'
readme = 'README'

distutils.core.setup(
name='ad',
version='1.3.2',
author='Abraham Lee',
author_email='[email protected]',
description='Fast, transparent first- and second-order automatic differentiation',
url='http://pythonhosted.org/ad',
license='BSD License',
long_description=read(readme),
package_data={'': [readme]},
#include_package_data=True,
packages=['ad', 'ad.admath', 'ad.linalg'],
keywords=[
'automatic differentiation',
'first order',
'second order',
'derivative',
'algorithmic differentiation',
'computational differentiation',
'optimization',
'linear algebra'
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Topic :: Education',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities'
],
cmdclass={'build_py': build_py},
**extras
)
distutils.core.setup(
name='ad',
version='1.3.2',
author='Abraham Lee',
author_email='[email protected]',
description='Fast, transparent first- and second-order automatic differentiation',
url='http://pythonhosted.org/ad',
license='BSD License',
long_description=read(readme),
package_data={'': [readme]},
#include_package_data=True,
packages=['ad', 'ad.admath', 'ad.linalg'],
keywords=[
'automatic differentiation',
'first order',
'second order',
'derivative',
'algorithmic differentiation',
'computational differentiation',
'optimization',
'linear algebra'
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Topic :: Education',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities'
],
cmdclass={'build_py': build_py},
**extras
)