Created
August 10, 2016 19:39
-
-
Save cvvs/f012a016d3e36680af5a489ad84dd7e0 to your computer and use it in GitHub Desktop.
Working setup.py with a requires numpy (without numpy include_dirs)
This file contains hidden or 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
#from distutils.core import setup, Extension | |
#import numpy | |
from setuptools import setup, Extension | |
cpu_hamming = Extension('cpu_hamming', | |
define_macros=[('MAJOR_VERSION', '0'), | |
('MINOR_VERSION', '6')], | |
libraries=['m'], | |
extra_compile_args=["-pthread", "--std=c++0x", "-msse4.2", | |
"-funroll-loops", "-O3", "-mfpmath=sse"], | |
sources=['cpu/ham.cpp']) | |
setup(ext_modules=[cpu_hamming], | |
name='nearest', | |
version='0.6.0', | |
description='Nearest Neighour Search', | |
author='njh', | |
author_email='[email protected]', | |
packages=['nearest'], | |
setup_requires=["numpy"], | |
install_requires=["numpy", "cffi"], | |
#include_dirs=[numpy.get_include()], | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment