equal
deleted
inserted
replaced
3 from distutils.command.install_data import install_data |
3 from distutils.command.install_data import install_data |
4 from distutils.command.install import INSTALL_SCHEMES |
4 from distutils.command.install import INSTALL_SCHEMES |
5 import sys |
5 import sys |
6 |
6 |
7 MODULE = 'hashcut' |
7 MODULE = 'hashcut' |
|
8 README_PATH = '../README.md' |
8 |
9 |
9 class osx_install_data(install_data): |
10 class osx_install_data(install_data): |
10 # On MacOS, the platform-specific lib dir is /System/Library/Framework/Python/.../ |
11 # On MacOS, the platform-specific lib dir is /System/Library/Framework/Python/.../ |
11 # which is wrong. Python 2.5 supplied with MacOS 10.5 has an Apple-specific fix |
12 # which is wrong. Python 2.5 supplied with MacOS 10.5 has an Apple-specific fix |
12 # for this in distutils.command.install_data#306. It fixes install_lib but not |
13 # for this in distutils.command.install_data#306. It fixes install_lib but not |
82 #write MANIFEST.in |
83 #write MANIFEST.in |
83 |
84 |
84 with open("MANIFEST.in", "w") as m: |
85 with open("MANIFEST.in", "w") as m: |
85 m.write("include CHANGES\n") |
86 m.write("include CHANGES\n") |
86 m.write("include LICENSE\n") |
87 m.write("include LICENSE\n") |
87 m.write("include ../README.md\n") |
88 m.write("include %s\n" % README_PATH) |
88 m.write("include MANIFEST.in\n") |
89 m.write("include MANIFEST.in\n") |
89 for entry in data_files: |
90 for entry in data_files: |
90 file_list = entry[1] |
91 file_list = entry[1] |
91 for filename in file_list: |
92 for filename in file_list: |
92 m.write("include %s\n" % (filename)) |
93 m.write("include %s\n" % (filename)) |
103 cmdclass = cmdclasses, |
104 cmdclass = cmdclasses, |
104 scripts=[], |
105 scripts=[], |
105 url='http://www.iri.centrepompidou.fr/dev/hg/hashcut', |
106 url='http://www.iri.centrepompidou.fr/dev/hg/hashcut', |
106 license='LICENSE', |
107 license='LICENSE', |
107 description='Hashcut Django module', |
108 description='Hashcut Django module', |
108 long_description=open('README').read(), |
109 long_description=open(README_PATH).read(), |
109 classifiers=['Development Status :: 5 - Production/Stable', |
110 classifiers=['Development Status :: 5 - Production/Stable', |
110 'Environment :: Web Environment', |
111 'Environment :: Web Environment', |
111 'Framework :: Django', |
112 'Framework :: Django', |
112 'Intended Audience :: Developers', |
113 'Intended Audience :: Developers', |
113 'License :: Ceccil-C', |
114 'License :: Ceccil-C', |