-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
11 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 |
---|---|---|
@@ -1,27 +1,31 @@ | ||
# setup.py | ||
import os | ||
from distutils.core import setup | ||
from setuptools import setup, Extension | ||
from setuptools.command.build_ext import build_ext as _build_ext | ||
|
||
def read(filename): | ||
return open(os.path.join(os.path.dirname(__file__), filename)).read() | ||
|
||
class build_ext(_build_ext): | ||
def finalize_options(self): | ||
_build_ext.finalize_options(self) | ||
# Prevent numpy from thinking it is still in its setup process: | ||
__builtins__.__NUMPY_SETUP__ = False | ||
import numpy | ||
self.include_dirs.append(numpy.get_include()) | ||
|
||
setup(name='reverse_geocoder', | ||
version='1.4', | ||
version='1.5', | ||
author='Ajay Thampi', | ||
author_email='[email protected]', | ||
url='https://github.com/thampiman/reverse-geocoder', | ||
packages=['reverse_geocoder'], | ||
package_dir={'reverse_geocoder': './reverse_geocoder'}, | ||
package_data={'reverse_geocoder': ['rg_cities1000.csv']}, | ||
setup_requires=[ | ||
'numpy', | ||
'scipy', | ||
], | ||
install_requires=[ | ||
'numpy', | ||
'scipy', | ||
], | ||
setup_requires=['numpy>=1.11.0',], | ||
cmdclass={'build_ext': build_ext}, | ||
install_requires=['numpy>=1.11.0', 'scipy>=0.17.1',], | ||
description='Fast, offline reverse geocoder', | ||
license='lgpl', | ||
long_description=read('README.txt') | ||
) | ||
long_description=read('README.txt')) |