Skip to content

Commit

Permalink
TST: fixed python 2.7 implementation
Browse files Browse the repository at this point in the history
Fixed setup for python 2.
  • Loading branch information
aburrell committed Feb 18, 2021
1 parent f630617 commit 6a0bec4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 0 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ classifiers =

[options]
zip_safe = False
packages = find:
package_dir =
=src
install_requires = numpy
Expand All @@ -50,9 +49,6 @@ include_entry_points = True
console_scripts =
apexpy = apexpy.__main__:main

[options.packages.find]
where = src

[options.package_data]
apexpy = apexsh.dat

Expand Down
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from glob import glob
from os import path, environ
from setuptools import setup, find_packages
import sys

# Include extensions only when not on readthedocs.org
if environ.get('READTHEDOCS', None) == 'True':
Expand All @@ -20,5 +21,9 @@
'src/fortranapex/checkapexsh.f90',
'src/fortranapex/fortranapex.pyf'])]

setup(py_modules=[path.splitext(path.basename(pp))[0]
for pp in glob('src/*.py')], ext_modules=extensions)
setup_kwargs = {'py_modules': [path.splitext(path.basename(pp))[0]
for pp in glob('src/*.py')],
'ext_modules': extensions,
'packages': find_packages(where='src')}

setup(**setup_kwargs)

0 comments on commit 6a0bec4

Please sign in to comment.