4 ROOT_DIR = os.path.dirname(__file__) |
4 ROOT_DIR = os.path.dirname(__file__) |
5 SOURCE_DIR = os.path.join(ROOT_DIR) |
5 SOURCE_DIR = os.path.join(ROOT_DIR) |
6 |
6 |
7 version = __import__('ldt').__version__ |
7 version = __import__('ldt').__version__ |
8 |
8 |
|
9 packages, data_files = [], [] |
|
10 |
|
11 for dirpath, dirnames, filenames in os.walk(django_dir): |
|
12 # Ignore dirnames that start with '.' |
|
13 for i, dirname in enumerate(dirnames): |
|
14 if dirname.startswith('.'): del dirnames[i] |
|
15 if '__init__.py' in filenames: |
|
16 packages.append('.'.join(fullsplit(dirpath))) |
|
17 elif filenames: |
|
18 data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]]) |
|
19 |
9 setup( |
20 setup( |
10 name = 'Ldt', |
21 name = 'Ldt', |
11 version = version, |
22 version = version, |
12 author = 'Yves-Marie Haussonne (IRI)', |
23 author = 'Yves-Marie Haussonne (IRI)', |
13 author_email = 'contact@iri.centrepompidou.fr', |
24 author_email = 'contact@iri.centrepompidou.fr', |
14 packages = find_packages(), |
25 packages = packages, |
15 package_data = { |
26 data_files = data_files, |
16 '': [ |
27 # package_data = { |
17 'media/*', |
28 # '': [ |
18 'locale/*/LC_MESSAGES/*', |
29 # 'media/*', |
19 'templates/ldt/*.html', |
30 # 'locale/*/LC_MESSAGES/*', |
20 'templates/admin/*.html', |
31 # 'templates/ldt/*.html', |
21 'templates/cms/admin/cms/page/*.html', |
32 # 'templates/admin/*.html', |
22 ] |
33 # 'templates/cms/admin/cms/page/*.html', |
23 }, |
34 # ] |
|
35 # }, |
24 scripts =[], |
36 scripts =[], |
25 url = 'https://www.iri.centrepompidou.fr/dev/hg/platform', |
37 url = 'https://www.iri.centrepompidou.fr/dev/hg/platform', |
26 license = 'LICENSE.txt', |
38 license = 'LICENSE.txt', |
27 description = 'Platform ldt', |
39 description = 'Platform ldt', |
28 long_description = open('README.txt').read(), |
40 long_description = open('README.txt').read(), |