kopia lustrzana https://github.com/wagtail/wagtail
Fixes to setup.py to create a usable package
rodzic
ce97ed9d35
commit
9f5976c8c0
17
setup.py
17
setup.py
|
@ -1,10 +1,21 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from setuptools import setup
|
from setuptools import setup, find_packages
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
|
|
||||||
|
|
||||||
|
# Hack to prevent stupid TypeError: 'NoneType' object is not callable error on
|
||||||
|
# exit of python setup.py test # in multiprocessing/util.py _exit_function when
|
||||||
|
# running python setup.py test (see
|
||||||
|
# http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
|
||||||
|
try:
|
||||||
|
import multiprocessing
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='wagtail',
|
name='wagtail',
|
||||||
version='0.1',
|
version='0.1',
|
||||||
|
@ -12,7 +23,8 @@ setup(
|
||||||
author='Matthew Westcott',
|
author='Matthew Westcott',
|
||||||
author_email='matthew.westcott@torchbox.com',
|
author_email='matthew.westcott@torchbox.com',
|
||||||
url='http://wagtail.io/',
|
url='http://wagtail.io/',
|
||||||
packages=['wagtail'],
|
packages=find_packages(),
|
||||||
|
include_package_data=True,
|
||||||
license='BSD',
|
license='BSD',
|
||||||
long_description=open('README.rst').read(),
|
long_description=open('README.rst').read(),
|
||||||
classifiers=[
|
classifiers=[
|
||||||
|
@ -41,4 +53,5 @@ setup(
|
||||||
"lxml>=3.3.0",
|
"lxml>=3.3.0",
|
||||||
"BeautifulSoup==3.2.1", # django-compressor gets confused if we have lxml but not BS3 installed
|
"BeautifulSoup==3.2.1", # django-compressor gets confused if we have lxml but not BS3 installed
|
||||||
],
|
],
|
||||||
|
zip_safe=False,
|
||||||
)
|
)
|
||||||
|
|
Ładowanie…
Reference in New Issue