diff options
| author | Florian Apolloner <florian@apolloner.eu> | 2013-10-25 14:05:02 -0400 |
|---|---|---|
| committer | Florian Apolloner <florian@apolloner.eu> | 2013-12-27 00:51:53 +0100 |
| commit | 929ceadda129090e260ec693178b992cd02da7bb (patch) | |
| tree | 7e707395b6354f628ab7a4b0a7bae8997723b535 | |
| parent | d8d83777ebbe15af7587a24698435555ba3bb842 (diff) | |
Switched setup.py to setuptools.
| -rw-r--r-- | extras/Makefile | 2 | ||||
| -rw-r--r-- | setup.py | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/extras/Makefile b/extras/Makefile index ff14f404e2..66efd0d451 100644 --- a/extras/Makefile +++ b/extras/Makefile @@ -4,6 +4,6 @@ sdist: python setup.py sdist 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 @@ -1,7 +1,7 @@ import os import sys -from distutils.core import setup +from setuptools import setup from distutils.sysconfig import get_python_lib # Warn if we are installing over top of an existing installation. This can @@ -91,7 +91,10 @@ setup( license='BSD', packages=packages, 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=[ 'Development Status :: 3 - Alpha', 'Environment :: Web Environment', @@ -113,6 +116,7 @@ setup( ], ) + if overlay_warning: sys.stderr.write(""" |
