From 190781dc3018fdfcbf6806f05471856eb4bb4cb3 2008-05-22 18:57:52 From: Ville M. Vainio Date: 2008-05-22 18:57:52 Subject: [PATCH] docs: remove build crap from sdist with manifest.in --- diff --git a/MANIFEST.in b/MANIFEST.in index 4e3de84..d3bd989 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -22,6 +22,12 @@ exclude doc/manual/*.log exclude doc/manual/*.out exclude doc/manual/*.pl exclude doc/manual/*.tex +exclude doc/build/doctrees/* +exclude doc/build/latex/* +exclude doc/build/html/_sources/* + + + global-exclude *~ global-exclude *.flc diff --git a/setup.py b/setup.py index d01b27b..65944b3 100755 --- a/setup.py +++ b/setup.py @@ -52,15 +52,10 @@ if len(sys.argv) >= 2 and sys.argv[1] in ('sdist','bdist_rpm'): # target_update() def oscmd(s): - cwd = os.getcwd() - for l in textwrap.dedent(s).splitlines(): - print ">", l.strip() - os.system(l.strip()) + print ">", s + os.system(s) - os.chdir(cwd) - - oscmd("""\ - cd doc && python do_sphinx.py""") + oscmd("cd doc && python do_sphinx.py") oscmd("cd doc && gzip -9c ipython.1 > ipython.1.gz") oscmd("cd doc && gzip -9c pycolor.1 > pycolor.1.gz")