반응형
python - setuptool, setup.py
python.flowdas.com/install/index.html
파이썬 모듈 설치 (레거시 버전) — 파이썬 설명서 주석판
소개 파이썬 2.0에서, distutils API가 처음으로 표준 라이브러리에 추가되었습니다. 이는 리눅스 배포 관리자에게 파이썬 프로젝트를 리눅스 배포 패키지로 변환하는 표준 방법을 제공하고, 시스템
python.flowdas.com
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',
],
},
)
파이썬 프로젝트 시작하기 - Setuptools — flowdas
www.flowdas.com
반응형
'프로그래밍 > 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 |