1
Here我发现如何编写setup.py
文件来编译我自己的用于python的C/C++模块,但是我不能从命令行指定多个include目录。如何从命令行指定setup.py的多个include目录?
请告诉我语法如何从命令行指定一个目录列表setup.py
。
Here我发现如何编写setup.py
文件来编译我自己的用于python的C/C++模块,但是我不能从命令行指定多个include目录。如何从命令行指定setup.py的多个include目录?
请告诉我语法如何从命令行指定一个目录列表setup.py
。
我找到了解决办法就应该是这样的
python setup.py build_ext --inplace --library-dirs=lib_dir1;lib_dir2 --include-dirs=inc_dir1;inc_dir2
为setup.py
帮助告诉,你可以指定分隔多个值 “:”
缩短输出:
$ python setup.py build_ext --help
Common commands: (see '--help-commands' for more)
setup.py build will build the package underneath 'build/'
setup.py install will install the package
Options for 'build_ext' command:
--include-dirs (-I) list of directories to search for header files
(separated by ':')