从Git存储库安装Python软件包后,缺少一些文件夹 [英] After installation of Python package from Git repository some folders are missing
问题描述
我想从以下仓库中安装软件包 https://github.com/geomin/django-国家.
我正在使用的命令是pip install git://github.com/geomin/django-countria.git
. Pip将存储库克隆到一个临时文件夹,然后运行setup.py
.问题在于,安装完成后,site_packages
包含文件countria-0.8-py2.7.egg/countria/models.py
和countria-0.8-py2.7.egg/countria/__init__.py
,但是没有fixtures
和locale
文件夹.如果我克隆程序包并运行setup.py
,我将得到相同的行为.
I want to install a package from the following repo https://github.com/geomin/django-countria.
The command I'm using is pip install git://github.com/geomin/django-countria.git
. Pip clones the repo to a temporary folder and then runs setup.py
. The problem is that after installation completes, site_packages
containes files countria-0.8-py2.7.egg/countria/models.py
and countria-0.8-py2.7.egg/countria/__init__.py
but no fixtures
and locale
folders. If I clone the package and run setup.py
I get the same behavior.
推荐答案
The reason the package misses fixtures and stuff is that there is no MANIFEST in this repo.
尝试安装以进行开发:
pip install -e git+git://github.com/geomin/django-countria.git#egg=countria
或者,克隆软件包并运行:
Or, clone the package and run:
pip install -e path/to/clone
这篇关于从Git存储库安装Python软件包后,缺少一些文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!