“ python setup.py install”自定义依赖项位置

时间:2018-11-26 12:13:26

标签: python distutils pyyaml libyaml

我目前正在尝试安装与libyaml链接的pyyaml的自定义版本,以测试我的代码执行时间如何从所提供的额外性能中受益(如https://pyyaml.org/wiki/PyYAMLDocumentation中所建议)。我已经按照文档中的说明安装了libyaml

vapply(choices,function(y) x %in% y,logical(length(x)))
#      [,1]  [,2]
#[1,]  TRUE FALSE
#[2,] FALSE  TRUE

但是当我为pyyaml运行安装时

./bootstrap && ./configure --prefix /my/install/location

我明白了

python setup.py --with-libyaml install

如何将安装指向creating build/temp.linux-x86_64-2.7/ext /usr/bin/gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/bin/python2.7 -c ext/_yaml.c -o build/temp.linux-x86_64-2.7/ext/_yaml.o gcc: error: ext/_yaml.c: No such file or directory gcc: fatal error: no input files ?有没有一种方法可以扩展搜索路径以包含额外的位置,或者还有另一种方法可以将其组合在一起?

0 个答案:

没有答案