1
我有這樣的setup.py:蟒蛇setup.py:如何設置路徑的產生。所以
from distutils.core import setup, Extension
from setuptools import setup, Extension
import numpy as np
module1 = Extension('filename',
sources = ['utilities/filename.c'])
setup (name = 'library',
version = '1.0',
description = 'library',
include_dirs = [np.get_include()],
ext_modules = [module1])
我要創建filename.so到該文件夾的工具。 我試着用
python setup.py build -f --build-temp=. -e utilities/
但這把只是filename.o文件到公用事業/和。所以到構建/ lib中......
任何想法?有沒有可能?