Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 190781d

Browse files
committed
docs: remove build crap from sdist with manifest.in
1 parent adfdc18 commit 190781d

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

MANIFEST.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ exclude doc/manual/*.log
2222
exclude doc/manual/*.out
2323
exclude doc/manual/*.pl
2424
exclude doc/manual/*.tex
25+
exclude doc/build/doctrees/*
26+
exclude doc/build/latex/*
27+
exclude doc/build/html/_sources/*
28+
29+
30+
2531

2632
global-exclude *~
2733
global-exclude *.flc

setup.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,10 @@
5252
# target_update()
5353

5454
def oscmd(s):
55-
cwd = os.getcwd()
56-
for l in textwrap.dedent(s).splitlines():
57-
print ">", l.strip()
58-
os.system(l.strip())
55+
print ">", s
56+
os.system(s)
5957

60-
os.chdir(cwd)
61-
62-
oscmd("""\
63-
cd doc && python do_sphinx.py""")
58+
oscmd("cd doc && python do_sphinx.py")
6459

6560
oscmd("cd doc && gzip -9c ipython.1 > ipython.1.gz")
6661
oscmd("cd doc && gzip -9c pycolor.1 > pycolor.1.gz")

0 commit comments

Comments
 (0)