Skip to content

Commit fb4e69e

Browse files
committed
Add a convenience function to compile pandas ready for doc-building
1 parent 724a1f3 commit fb4e69e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/make.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,12 @@ def upload_prev(ver, doc_root='./'):
7272
if os.system(pdf_cmd):
7373
raise SystemExit('Upload PDF to %s from %s failed' % (ver, doc_root))
7474

75-
75+
def build_pandas():
76+
os.chdir('..')
77+
os.system('python setup.py clean')
78+
os.system('python setup.py build_ext --inplace')
79+
os.chdir('doc')
80+
7681
def build_prev(ver):
7782
if os.system('git checkout v%s' % ver) != 1:
7883
os.chdir('..')
@@ -238,6 +243,7 @@ def _get_config():
238243
'clean': clean,
239244
'auto_dev': auto_dev_build,
240245
'auto_debug': lambda: auto_dev_build(True),
246+
'build_pandas': build_pandas,
241247
'all': all,
242248
}
243249

0 commit comments

Comments
 (0)