Skip to content

Instantly share code, notes, and snippets.

@cvvs

cvvs/setup.py

Created Aug 10, 2016
Embed
What would you like to do?
Working setup.py with a requires numpy (without numpy include_dirs)
#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='nhurst@shutterstock.com',
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
You can’t perform that action at this time.