diff options
author | Carl Meyer <carl@oddbird.net> | 2011-05-01 12:51:33 -0500 |
---|---|---|
committer | Jannis Leidel <jannis@leidel.info> | 2011-07-16 16:25:45 +0200 |
commit | b0d2fc1d864da6f032e5798be816acd4cdc583fe (patch) | |
tree | c0d1518c2a4abef93134fb53c4c0d117fdb6e8b9 /setup.py | |
parent | 3227bca5bbd66899c260928933214d4da63346b0 (diff) | |
download | pip-b0d2fc1d864da6f032e5798be816acd4cdc583fe.tar.gz |
Fixed setup.py long-description to account for sphinx index.html changes.
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -8,14 +8,18 @@ version = "1.0.1" doc_dir = os.path.join(os.path.dirname(__file__), "docs") index_filename = os.path.join(doc_dir, "index.txt") news_filename = os.path.join(doc_dir, "news.txt") -long_description = """\ +long_description = """ + The main website for pip is `www.pip-installer.org <http://www.pip-installer.org>`_. You can also install the `in-development version <https://github.com/pypa/pip/tarball/develop#egg=pip-dev>`_ of pip with ``easy_install pip==dev``. + """ f = open(index_filename) -long_description += f.read().split("split here", 1)[1] +# remove the toctree from sphinx index, as it breaks long_description +parts = f.read().split("split here", 2) +long_description = parts[0] + long_description + parts[2] f.close() f = open(news_filename) long_description += "\n\n" + f.read() |