[英]Pip django app installation
我目前正在以Django應用程序的形式開發內部廣告管理器! 它稱為“鏈接”,基本上是指圖形鏈接。 我猜Kinda很有道理。 我想通過pip使它可用,所以我完成了所有步驟,現在可以在這里找到它:
https://pypi.python.org/pypi/django-glinks/
由於某種原因,當我直接從頁面上的tar文件安裝它時,我得到了正確的文件夾/文件結構。
django-glinks
*files needed
glinks
*files needed
templatetags
*files needed
但! 當我使用pip install django-glinks
我沒有得到templatetags目錄或文件! 所以我得到了這個:
django-glinks
*files needed
glinks
*files needed
我對此很陌生,因此如果有人可以幫助我,那就太好了。 這是我的setup.py文件:
from distutils.core import setup
import os
README = open(os.path.join(os.path.dirname(__file__), 'README.txt')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-glinks',
version='0.1.4',
author='Shawn Simon',
author_email='shawn.simon.developer@gmail.com',
packages=['glinks'],
url='http://pypi.python.org/pypi/django-glinks/',
license='LICENSE.txt',
description='Interal add manager for django sites.',
long_description=open('README.txt').read(),
install_requires=[
"Django >= 1.6.0",
],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License', # example license
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)
這是我的manafest.in:
include *.txt
recursive-include docs *.txt
recursive-include docs *.py
recursive-include docs *.rst
recursive-include docs Makefile
recursive-include pypiuploader *.py
recursive-include tests *.py
include glinks/templatetags/*.py
include *.py
setup
-完成packages
var 好的,您可以顯示setup.py
。 它缺少對glingks.templatetags
包的引用。
如果將此軟件包添加到如下所示的packages
中,它將起作用。 對我來說,經過這種修改后,我不僅glinks
,還glinks.templatetags
。
setup(
name='django-glinks',
version='0.1.4',
author='Shawn Simon',
author_email='shawn.simon.developer@gmail.com',
packages=['glinks', "glinks.templatetags"],
url='http://pypi.python.org/pypi/django-glinks/',
license='LICENSE.txt',
description='Interal add manager for django sites.',
long_description=open('README.txt').read(),
install_requires=[
"Django >= 1.6.0",
],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License', # example license
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.