在这里,我找到了如何编写setup.py文件来编译我自己的python C / C ++模块,但我不能从命令行指定多个包含目录。
请告诉我语法如何从命令行为setup.py指定目录列表。
Here I found how to write setup.py file for compiling my own C/C++ modules for python, but I can't specify more than one include directories from command line.
Please tell me the syntax how should I specify a list of directories from command line for setup.py.
最满意答案
我发现它应该是这样的解决方案
python setup.py build_ext --inplace --library-dirs=lib_dir1;lib_dir2 --include-dirs=inc_dir1;inc_dir2I found the solution it should look like this
python setup.py build_ext --inplace --library-dirs=lib_dir1;lib_dir2 --include-dirs=inc_dir1;inc_dir2如何从命令行为setup.py指定多个include目录?(How to specify more than one include directories for setup.py from command line?)在这里,我找到了如何编写setup.py文件来编译我自己的python C / C ++模块,但我不能从命令行指定多个包含目录。
请告诉我语法如何从命令行为setup.py指定目录列表。
Here I found how to write setup.py file for compiling my own C/C++ modules for python, but I can't specify more than one include directories from command line.
Please tell me the syntax how should I specify a list of directories from command line for setup.py.
最满意答案
我发现它应该是这样的解决方案
python setup.py build_ext --inplace --library-dirs=lib_dir1;lib_dir2 --include-dirs=inc_dir1;inc_dir2I found the solution it should look like this
python setup.py build_ext --inplace --library-dirs=lib_dir1;lib_dir2 --include-dirs=inc_dir1;inc_dir2
发布评论