Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009 import numpy as np
00010 import os
00011 from os.path import join as pjoin
00012
00013 from setuptools import setup
00014 from distutils.extension import Extension
00015 from Cython.Distutils import build_ext
00016 import subprocess
00017
00018
00019 nvcc_bin = 'nvcc.exe'
00020 lib_dir = 'lib/x64'
00021
00022 import distutils.msvc9compiler
00023 distutils.msvc9compiler.VERSION = 14.0
00024
00025
00026 try:
00027 numpy_include = np.get_include()
00028 except AttributeError:
00029 numpy_include = np.get_numpy_include()
00030
00031 ext_modules = [
00032
00033 Extension(
00034 "bbox",
00035 sources=["bbox.pyx"],
00036 extra_compile_args={},
00037 include_dirs = [numpy_include]
00038 ),
00039 ]
00040
00041 setup(
00042 name='fast_rcnn',
00043 ext_modules=ext_modules,
00044
00045 cmdclass={'build_ext': build_ext},
00046 )