|
4 | 4 | import setuptools |
5 | 5 | import numpy.distutils.core |
6 | 6 | import os |
7 | | -import sys |
8 | | -import numpy as np |
9 | 7 |
|
10 | 8 | from numpy.distutils.misc_util import Configuration |
11 | | -from numpy.distutils.command.sdist import sdist as sdist |
| 9 | +# from numpy.distutils.command.sdist import sdist as sdist |
12 | 10 |
|
13 | 11 | config = Configuration('pysatMagVect') |
14 | 12 |
|
|
17 | 15 | sources = [os.path.join('pysatMagVect', 'igrf12.f')] |
18 | 16 | ) |
19 | 17 |
|
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() |
| 18 | +here = os.path.abspath(os.path.dirname(__file__)) |
| 19 | +#with open(path.join(here, 'description.txt'), encoding='utf-8') as f: |
| 20 | +# long_description = f.read() |
| 21 | +version_filename = os.path.join('pysatMagVect', 'version.txt') |
| 22 | +with open(os.path.join(here, version_filename)) as version_file: |
| 23 | + version = version_file.read().strip() |
26 | 24 |
|
27 | 25 | # call setup |
28 | 26 | #-------------------------------------------------------------------------- |
29 | 27 | numpy.distutils.core.setup( |
30 | 28 |
|
31 | 29 | name = 'pysatMagVect', |
32 | | - version = '0.1.3', |
| 30 | + version = version, |
33 | 31 | packages = ['pysatMagVect','pysatMagVect.tests'], |
34 | 32 | description= ''.join(('Calculates geomagnetic unit vectors (field aligned, zonal, and meridional) ' |
35 | 33 | 'and includes supporting routines for characterizing the motion of ionospheric plasma.')), |
36 | | - # cmdclass={'sdist': numpy.distutils.command.sdist}, |
| 34 | + # cmdclass={'sdist': sdist}, |
37 | 35 |
|
38 | 36 | # Author details |
39 | 37 | author='Russell Stoneback', |
40 | 38 | author_email='rstoneba@utdallas.edu', |
41 | | - # package_data={'pysatMagVect': ['pysatMagVect/version.txt']}, |
42 | | - # include_package_data=True, |
| 39 | + package_data={'pysatMagVect': ['pysatMagVect/version.txt']}, |
| 40 | + include_package_data=True, |
43 | 41 |
|
44 | 42 | ext_modules = config.todict()['ext_modules'], |
45 | 43 |
|
|
0 commit comments