Switched setup.py to setuptools.

This commit is contained in:
Florian Apolloner 2013-10-25 14:05:02 -04:00
parent d8d83777eb
commit 929ceadda1
2 changed files with 7 additions and 3 deletions

View File

@ -4,6 +4,6 @@ sdist:
python setup.py sdist python setup.py sdist
bdist_wheel: bdist_wheel:
python -c "import setuptools;__file__='setup.py';exec(compile(open(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))" bdist_wheel python setup.py bdist_wheel
.PHONY : sdist bdist_wheel .PHONY : sdist bdist_wheel

View File

@ -1,7 +1,7 @@
import os import os
import sys import sys
from distutils.core import setup from setuptools import setup
from distutils.sysconfig import get_python_lib from distutils.sysconfig import get_python_lib
# Warn if we are installing over top of an existing installation. This can # Warn if we are installing over top of an existing installation. This can
@ -91,7 +91,10 @@ setup(
license='BSD', license='BSD',
packages=packages, packages=packages,
package_data=package_data, package_data=package_data,
scripts=['django/bin/django-admin.py'], entry_points={'console_scripts': [
'django-admin = django.core.management:execute_from_command_line',
]},
zip_safe=False,
classifiers=[ classifiers=[
'Development Status :: 3 - Alpha', 'Development Status :: 3 - Alpha',
'Environment :: Web Environment', 'Environment :: Web Environment',
@ -113,6 +116,7 @@ setup(
], ],
) )
if overlay_warning: if overlay_warning:
sys.stderr.write(""" sys.stderr.write("""