correct setup and readme path
authorymh <ymh.work@gmail.com>
Tue, 04 Dec 2012 12:53:56 +0100
changeset 101 2f8c3f8783fa
parent 100 43dab2ef6f1a
child 102 5a247bc49df7
correct setup and readme path
src/setup.py
--- a/src/setup.py	Tue Dec 04 12:19:06 2012 +0100
+++ b/src/setup.py	Tue Dec 04 12:53:56 2012 +0100
@@ -5,6 +5,7 @@
 import sys
 
 MODULE = 'hashcut'
+README_PATH = '../README.md'
 
 class osx_install_data(install_data):
     # On MacOS, the platform-specific lib dir is /System/Library/Framework/Python/.../
@@ -84,7 +85,7 @@
     with open("MANIFEST.in", "w") as m:    
         m.write("include CHANGES\n")
         m.write("include LICENSE\n")
-        m.write("include ../README.md\n")
+        m.write("include %s\n" % README_PATH)
         m.write("include MANIFEST.in\n")
         for entry in data_files:
             file_list = entry[1]
@@ -105,7 +106,7 @@
         url='http://www.iri.centrepompidou.fr/dev/hg/hashcut',
         license='LICENSE',
         description='Hashcut Django module',
-        long_description=open('README').read(),
+        long_description=open(README_PATH).read(),
         classifiers=['Development Status :: 5 - Production/Stable',
                        'Environment :: Web Environment',
                        'Framework :: Django',