如何通过setup.py安装py-yajl?

时间:2012-03-04 15:01:10

标签: python setup.py yajl

我想通过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,但我不知道该怎么做。

有人有个好主意吗?

0 个答案:

没有答案