반응형
python - setuptool, setup.py
python.flowdas.com/install/index.html
python setup.py install
모듈 의존성 관리 — install_requires
비공개 모듈 설치 — dependency_links
콘솔 스크립트 설치 — entry_points
개발 모드 디플로이 — setup.py develop
setup.py
from setuptools import setup, find_packages
setup_requires = [
]
install_requires = [
'django==1.6b4',
'markdown==2.3.1',
'pyyaml==3.10',
'pillow==2.1.0',
'lxml==3.2.3',
'beautifulsoup4==4.3.1',
]
dependency_links = [
'git+https://github.com/django/django.git@stable/1.6.x#egg=Django-1.6b4',
]
setup(
name='Flowdas-Books',
version='0.1',
description='Flowdas Books',
author='Flowdas',
author_email='spammustdie@flowdas.com',
packages=find_packages(),
install_requires=install_requires,
setup_requires=setup_requires,
dependency_links=dependency_links,
scripts=['manage.py'],
entry_points={
'console_scripts': [
'publish = flowdas.books.script:main',
'scan = flowdas.books.script:main',
'update = flowdas.books.script:main',
],
},
)
반응형
'프로그래밍 > Python' 카테고리의 다른 글
Naver sentiment movie corpus (0) | 2021.02.10 |
---|---|
[python] Stanford Pos Tagger를 이용한 POS Tagging, 품사 태깅 약어 정보 (0) | 2021.02.10 |
[python] Remove Elements From A Counter. counter에서 요소 삭제하기 (0) | 2020.12.17 |
[python] How to add or increment single item of the Python Counter class (0) | 2020.12.16 |
[python] Read file as a list of tuples, 파일읽어서 튜플 만들기 (0) | 2020.12.16 |