3

我想像这样通过 setup.py 安装 py-yajl。

from setuptools import setup, find_packages

here = os.path.abspath(os.path.dirname(__file__))

requires = [
    'yajl',
]

setup(
    ...
    install_requires=requires,
    tests_require=requires,
    ...
)

但是这个 setup.py 有一些错误。

>>> Creating a symlink for compilationg: includes/yajl -> yajl/src/api
error: SandboxViolation: symlink('../yajl/src/api', 'includes/yajl') {}

The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand.  Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.

我知道我可以使用 pip 安装 yajl。如果 setup.py 可以更改某些配置以使用 pip,我将安装 yajl 但我不知道该怎么做。

有人有好主意吗?

4

0 回答 0