我正在尝试在我选择的目录中安装现成的 waf 包(py2cairo)。理想情况下在我的 virtualenvsite-packages
中。这应该很简单,但我似乎无法让 waf 去做。
$ sudo ./waf install
./options()
Waf: Entering directory `/tmp/py2cairo-1.10.0/build_directory'
./build()
src/build()
- install /usr/local/include/pycairo/pycairo.h (from src/pycairo.h)
+ install /usr/local/lib/python2.6/site-packages/cairo/_cairo.so (from build_directory/src/_cairo.so)
+ install /usr/local/lib/pkgconfig/pycairo.pc (from pycairo.pc)
Waf: Leaving directory `/tmp/py2cairo-1.10.0/build_directory'
- install /usr/local/lib/python2.6/site-packages/cairo/__init__.py (from src/__init__.py)
+ byte compiling '/usr/local/lib/python2.6/site-packages/cairo/__init__.py'
'install' finished successfully (0.130s)
我想改变/usr/local/lib/python2.6/site-packages/cairo/__init__.py
我选择的东西。我找不到可以为我执行此操作的配置选项。
该--prefix
命令为字符串添加前缀,但不会更改它。--destdir
似乎没有什么区别。