python setup.py - data_files的用户安装

时间:2014-03-03 18:19:35

标签: python pip distutils

我的pip包setup.py如下:

from distutils.core import setup

setup(
    name='pythpackage',
    version='1.0',
    scripts=['native.sh'],
    data_files=[('/etc/opt/chrome/native-messaging-hosts/', ['io.nutty.terminal.json'])]
    )

当我执行“sudo python setup.py install”时,它按照预期在/ etc / opt / chrome / native-messaging-hosts /中安装io.nutty.terminal.json。但是当我做“python setup.py install --user”时,如何让io.nutty.terminal.json进入目录〜/ .config / chrome / NativeMessagingHosts?

0 个答案:

没有答案