Skip to content

Commit

Permalink
setup.py: add provides; simplify; re-indent
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-rhodes committed Feb 21, 2025
1 parent b4d89dc commit 9abaf9e
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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',
Expand All @@ -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,
)

0 comments on commit 9abaf9e

Please sign in to comment.