python setup.py build突然什么也没做

时间:2017-09-06 18:58:14

标签: python-3.x build distutils

我正在调试python setup.py文件。逐步,我添加更多的源和构建,事情进展顺利,输出很多。突然之间,我又将两个源文件添加到列表中,然后突然开始表现为没有任何东西可以构建。从setup.py文件中删除两个源文件没有帮助。清洁无济于事:

C:\Users\Ken\Desktop\Drawbox\Python36 backup> python setup.py clean
running clean

C:\Users\Ken\Desktop\Drawbox\Python36 backup> python setup.py build
running build
running build_ext

C:\Users\Ken\Desktop\Drawbox\Python36 backup>

这里有一个已知的问题吗?有没有办法摆脱这种误解? 这是设置文件:

from distutils.core import setup, Extension

drawbox_module = Extension(
    "drawbox", 
    include_dirs = [r'..\Drawbox Library', r'..\Drawbox Library\Win', r'..\Drawbox Tools', r'..\AP Classes'],
    define_macros = [('_ALLOW_KEYWORD_MACROS', 1)],
    extra_compile_args = '/W0',  # silence all warnings
    # sources = ["PyDrawbox.cpp", 'Drawbox.Win.cpp'])
    sources = [r'..\AP Classes\apstring.cpp', r'..\Drawbox Library\Color.cpp', r'..\Drawbox Library\Point.cpp', r'..\Drawbox Library\PVector.cpp', '..\Drawbox Library\Rect.cpp', '..\Drawbox Library\SpaceCalc.cpp', '..\Drawbox Tools\TextUtil.cpp', '..\Drawbox Library\Timer.cpp']
)

setup(name="drawbox", version="1.0", ext_modules= [drawbox_module])

系统:Windows 7 SP1,Python 3.6.2,VS 14命令行工具(Visual Studio 2015 Express)

0 个答案:

没有答案