简体   繁体   English

我分叉了github仓库并修改了一些资源。 “ pip install git + http://…”将安装除几个文件夹以外的所有内容

[英]I forked github repository and modified some sources. “pip install git+http://…” installs everything except a few folders

I forked a repository, modified some files, added new folders static/slideshows/css with a file slideshows.css . 我分叉了一个存储库,修改了一些文件,并添加了新文件夹static/slideshows/css和一个slideshows.css文件。

When I do "pip install git+ https://github.com/TitanFighter/emencia-django-slideshows.git ", pip installs everything (including modified files), but except static/slideshows/css/slideshows.css . 当我执行“ pip install git + https://github.com/TitanFighter/emencia-django-slideshows.git ”时, pip将安装所有内容(包括已修改的文件),但static/slideshows/css/slideshows.css除外。

When I do git clone , everything is ok. 当我执行git clone ,一切正常。

setup.py is forked and not modified: setup.py是分叉的,未修改:

from setuptools import setup, find_packages

setup(
    name='emencia-django-slideshows',
    version=__import__('slideshows').__version__,
    description=__import__('slideshows').__doc__,
    long_description=open('README.rst').read(),
    author='David Thenon',
    author_email='dthenon@emencia.com',
    url='http://pypi.python.org/pypi/emencia-django-slideshows',
    license='MIT',
    packages=find_packages(),
    classifiers=[
        'Programming Language :: Python',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Framework :: Django :: 1.7',
        'Intended Audience :: Developers',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
    install_requires=['Django>=1.7'],
    include_package_data=True,
    zip_safe=False
)

How to fix it? 如何解决?

必须将recursive-include slideshows/static *MANIFEST.in文件中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM