Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 47 lines (41 sloc) 1.841 kB
1d42481 @adrianholovaty Changed setup.py to use standard distutils instead of setuptools. Thi…
adrianholovaty authored
1 from distutils.core import setup
2 from distutils.command.install import INSTALL_SCHEMES
3 import os
911f0cd @adrianholovaty Fixed #3203 -- Fixed setup.py bdist_wininst. Thanks for the patch, ym…
adrianholovaty authored
4 import sys
775f433 @adrianholovaty Moved django.bin.setup to root level and converted it to use setuptoo…
adrianholovaty authored
5
1d42481 @adrianholovaty Changed setup.py to use standard distutils instead of setuptools. Thi…
adrianholovaty authored
6 # Tell distutils to put the data_files in platform-specific installation
7 # locations. See here for an explanation:
8 # http://groups.google.com/group/comp.lang.python/browse_thread/thread/35ec7b2fed36eaec/2105ee4d9e8042cb
9 for scheme in INSTALL_SCHEMES.values():
10 scheme['data'] = scheme['purelib']
11
12 # Compile the list of packages available, because distutils doesn't have
13 # an easy way to do this.
14 packages, data_files = [], []
a08ed9d @adrianholovaty Fixed #2989 -- easy_install now works with Django's setup.py. Thanks …
adrianholovaty authored
15 root_dir = os.path.dirname(__file__)
16 len_root_dir = len(root_dir)
17 django_dir = os.path.join(root_dir, 'django')
18
19 for dirpath, dirnames, filenames in os.walk(django_dir):
1d42481 @adrianholovaty Changed setup.py to use standard distutils instead of setuptools. Thi…
adrianholovaty authored
20 # Ignore dirnames that start with '.'
21 for i, dirname in enumerate(dirnames):
22 if dirname.startswith('.'): del dirnames[i]
23 if '__init__.py' in filenames:
a08ed9d @adrianholovaty Fixed #2989 -- easy_install now works with Django's setup.py. Thanks …
adrianholovaty authored
24 package = dirpath[len_root_dir:].lstrip('/').replace('/', '.')
25 packages.append(package)
1d42481 @adrianholovaty Changed setup.py to use standard distutils instead of setuptools. Thi…
adrianholovaty authored
26 else:
911f0cd @adrianholovaty Fixed #3203 -- Fixed setup.py bdist_wininst. Thanks for the patch, ym…
adrianholovaty authored
27 data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]])
28
29 # Small hack for working with bdist_wininst.
30 # See http://mail.python.org/pipermail/distutils-sig/2004-August/004134.html
97256bc @malcolmt Fixed #3536 -- Fixed setup.py so that it prints a usage message if you
malcolmt authored
31 if len(sys.argv) > 1 and sys.argv[1] == 'bdist_wininst':
911f0cd @adrianholovaty Fixed #3203 -- Fixed setup.py bdist_wininst. Thanks for the patch, ym…
adrianholovaty authored
32 for file_info in data_files:
33 file_info[0] = '/PURELIB/%s' % file_info[0]
775f433 @adrianholovaty Moved django.bin.setup to root level and converted it to use setuptoo…
adrianholovaty authored
34
35 setup(
b2424a3 @adrianholovaty Updated setup.py to include locales and *.TXT in package_data. Change…
adrianholovaty authored
36 name = "Django",
4059861 @ubernostrum [0.96-bugfixes] Update packaging information for impending 0.96.4 sec…
ubernostrum authored
37 version = "0.96.4",
775f433 @adrianholovaty Moved django.bin.setup to root level and converted it to use setuptoo…
adrianholovaty authored
38 url = 'http://www.djangoproject.com/',
4059861 @ubernostrum [0.96-bugfixes] Update packaging information for impending 0.96.4 sec…
ubernostrum authored
39 author = 'Django Software Foundation',
40 author_email = 'foundation@djangoproject.com',
41 download_url = 'http://media.djangoproject.com/releases/0.96/Django-0.96.4.tar.gz',
775f433 @adrianholovaty Moved django.bin.setup to root level and converted it to use setuptoo…
adrianholovaty authored
42 description = 'A high-level Python Web framework that encourages rapid development and clean, pragmatic design.',
1d42481 @adrianholovaty Changed setup.py to use standard distutils instead of setuptools. Thi…
adrianholovaty authored
43 packages = packages,
44 data_files = data_files,
41c99f3 @adrianholovaty Changed setup.py author and added django-admin to distutils 'scripts'
adrianholovaty authored
45 scripts = ['django/bin/django-admin.py'],
775f433 @adrianholovaty Moved django.bin.setup to root level and converted it to use setuptoo…
adrianholovaty authored
46 )
Something went wrong with that request. Please try again.