-
-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup.py: add
provides
; simplify; re-indent
- Loading branch information
1 parent
b4d89dc
commit 9abaf9e
Showing
1 changed file
with
17 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,9 @@ | |
import sys | ||
from distutils.core import setup, Extension | ||
|
||
name = 'sgp4' | ||
ext_modules = [] | ||
|
||
if os.environ.get('SGP4_PURE_PYTHON'): | ||
name += '_pure_python' | ||
|
||
elif sys.version_info[0] == 3: | ||
if sys.version_info[0] == 3: | ||
# It is hard to write C extensions that support both Python 2 and 3, | ||
# so we opt here to support the acceleration only for Python 3. | ||
|
||
|
@@ -51,16 +47,17 @@ | |
description = description.strip() | ||
long_description = long_description.strip() + '\n' | ||
|
||
setup(name = name, | ||
version = version, | ||
description = description, | ||
long_description = long_description, | ||
long_description_content_type = 'text/x-rst', | ||
license = 'MIT', | ||
author = 'Brandon Rhodes', | ||
author_email = '[email protected]', | ||
url = 'https://github.com/brandon-rhodes/python-sgp4', | ||
classifiers = [ | ||
setup( | ||
name = 'sgp4', | ||
version = version, | ||
description = description, | ||
long_description = long_description, | ||
long_description_content_type = 'text/x-rst', | ||
license = 'MIT', | ||
author = 'Brandon Rhodes', | ||
author_email = '[email protected]', | ||
url = 'https://github.com/brandon-rhodes/python-sgp4', | ||
classifiers = [ | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Science/Research', | ||
'License :: OSI Approved :: MIT License', | ||
|
@@ -73,8 +70,9 @@ | |
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
'Topic :: Scientific/Engineering :: Astronomy', | ||
], | ||
packages = ['sgp4'], | ||
package_data = {'sgp4': ['SGP4-VER.TLE', 'sample*', 'tcppver.out']}, | ||
ext_modules = ext_modules, | ||
], | ||
packages = ['sgp4'], | ||
package_data = {'sgp4': ['SGP4-VER.TLE', 'sample*', 'tcppver.out']}, | ||
provides = ['sgp4'], | ||
ext_modules = ext_modules, | ||
) |