from distutils.core import setup
import os

setup(name='stdeb',
      # Keep version in sync with stdeb/__init__.py, Install section
      # of README.rst, and USER_AGENT in scripts/pypi-install.
      version='0.7.1',
      author='Andrew Straw',
      author_email='strawman@astraw.com',
      description='Python to Debian source package conversion utility',
      long_description=open('README.rst').read(),
      license='MIT',
      url='http://github.com/astraw/stdeb',
      packages=['stdeb','stdeb.command'],
      scripts=['scripts/py2dsc',
               'scripts/py2dsc-deb',
               'scripts/pypi-download',
               'scripts/pypi-install',
               ],
)

@@ -37,10 +37,132 @@
 ort 
-os
+codecs%0A%0Af = codecs.open('README.rst', encoding='utf-8')%0Along_description = '%5Cn'.join( %5Bline for line in f%5D )%0Af.close()%0Adel f
 %0A%0Ase
@@ -504,33 +504,24 @@
 ion=
-open('README.rst').read()
+long_description
 ,%0A  

read README.rst file as utf-8 encoded