Skip to content

Commit 025f4af

Browse files
committed
Changed setup.py since numpy sdist is broken.
1 parent a24e94d commit 025f4af

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

setup.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import numpy as np
99

1010
from numpy.distutils.misc_util import Configuration
11+
from numpy.distutils.command.sdist import sdist as sdist
1112

1213
config = Configuration('pysatMagVect')
1314

@@ -16,33 +17,33 @@
1617
sources = [os.path.join('pysatMagVect', 'igrf12.f')]
1718
)
1819

19-
here = os.path.abspath(os.path.dirname(__file__))
20-
#with open(path.join(here, 'description.txt'), encoding='utf-8') as f:
21-
# long_description = f.read()
22-
version_filename = os.path.join('pysatMagVect', 'version.txt')
23-
with open(os.path.join(here, version_filename)) as version_file:
24-
version = version_file.read().strip()
20+
# here = os.path.abspath(os.path.dirname(__file__))
21+
# #with open(path.join(here, 'description.txt'), encoding='utf-8') as f:
22+
# # long_description = f.read()
23+
# version_filename = os.path.join('pysatMagVect', 'version.txt')
24+
# with open(os.path.join(here, version_filename)) as version_file:
25+
# version = version_file.read().strip()
2526

2627
# call setup
2728
#--------------------------------------------------------------------------
2829
numpy.distutils.core.setup(
2930

3031
name = 'pysatMagVect',
31-
version = version,
32+
version = '0.1.3',
3233
packages = ['pysatMagVect','pysatMagVect.tests'],
3334
description= ''.join(('Calculates geomagnetic unit vectors (field aligned, zonal, and meridional) '
3435
'and includes supporting routines for characterizing the motion of ionospheric plasma.')),
35-
# cmdclass={'sdist': sdist},
36+
# cmdclass={'sdist': numpy.distutils.command.sdist},
3637

3738
# Author details
3839
author='Russell Stoneback',
3940
author_email='rstoneba@utdallas.edu',
40-
package_data={'pysatMagVect': ['pysatMagVect/version.txt'],},
41-
include_package_data=True,
41+
# package_data={'pysatMagVect': ['pysatMagVect/version.txt']},
42+
# include_package_data=True,
4243

4344
ext_modules = config.todict()['ext_modules'],
4445

45-
install_requires = ['numpy', 'scipy'],
46+
install_requires = ['numpy', 'scipy',],
4647

4748
)
4849

0 commit comments

Comments
 (0)