Skip to content

Commit

Permalink
Fix for #24
Browse files Browse the repository at this point in the history
  • Loading branch information
thampiman committed Sep 15, 2016
1 parent cefd6ed commit b1bdfdd
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions setup.py
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='ajay.thampi@gmail.com',
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'))

0 comments on commit b1bdfdd

Please sign in to comment.