Skip to content

Commit

Permalink
Apply readme.patch: Make the README.txt import more robust
Browse files Browse the repository at this point in the history
Author: thijs
Reviewer: nick
Fixes: #534


git-svn-id: https://svn.pyamf.org/pyamf/trunk@2435 2dde4cc4-cf3c-0410-b1a3-a9b8ff274da5
  • Loading branch information
Thijs Triemstra committed May 26, 2009
1 parent d6f5ec2 commit 7e249c2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

use_setuptools()

import sys
import sys, os.path
from setuptools import setup, find_packages, Extension
from setuptools.command import test

Expand Down Expand Up @@ -43,7 +43,6 @@ def get_version():
@since: 0.4
"""
import os.path
# we read the file instead of importing it as root sometimes does not
# have the cwd as part of the PYTHONPATH

Expand Down Expand Up @@ -150,10 +149,12 @@ def get_install_requirements():
objectproxy arraycollection recordset actionscript decoder encoder
gateway remoteobject twisted pylons django sharedobject lso sol"""

readme = os.path.join(os.path.dirname(__file__), 'README.txt')

setup(name = "PyAMF",
version = get_version(),
description = "AMF support for Python",
long_description = open('README.txt', 'rt').read(),
long_description = open(readme, 'rt').read(),
url = "http://pyamf.org",
author = "The PyAMF Project",
author_email = "[email protected]",
Expand Down

0 comments on commit 7e249c2

Please sign in to comment.