Skip to content
Open
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
31 changes: 10 additions & 21 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
import os, sys
#from setuptools import setup
import distutils.core
import os
import sys
from setuptools import setup
from setuptools.command.build_py import build_py

# Building through 2to3, for Python 3 (see also setup(...,
# cmdclass=...), below:
try:
from distutils.command.build_py import build_py_2to3 as build_py
except ImportError:
# 2.x
from distutils.command.build_py import build_py
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()

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

readme = 'README'

distutils.core.setup(
setup(
name='ad',
version='1.3.2',
author='Abraham Lee',
Expand All @@ -28,7 +18,6 @@ def read(fname):
license='BSD License',
long_description=read(readme),
package_data={'': [readme]},
#include_package_data=True,
packages=['ad', 'ad.admath', 'ad.linalg'],
keywords=[
'automatic differentiation',
Expand All @@ -39,7 +28,7 @@ def read(fname):
'computational differentiation',
'optimization',
'linear algebra'
],
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Education',
Expand All @@ -53,6 +42,7 @@ def read(fname):
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.10',
'Topic :: Education',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
Expand All @@ -61,7 +51,6 @@ def read(fname):
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities'
],
cmdclass={'build_py': build_py},
**extras
)
],
cmdclass={'build_py': build_py}
)