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

Skip to content

Commit 2a174cb

Browse files
committed
Fixes to build system.
1 parent 926f8f4 commit 2a174cb

3 files changed

Lines changed: 21 additions & 13 deletions

File tree

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
include README_Windows.txt
22
include win32_manual_post_install.py
33
include ipython.py
4+
include setupbase.py
45

56
graft scripts
67

setup.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,17 @@
7575
to_update = [
7676
# FIXME - Disabled for now: we need to redo an automatic way
7777
# of generating the magic info inside the rst.
78-
#('doc/magic.tex',
78+
#('docs/magic.tex',
7979
#['IPython/Magic.py'],
8080
#"cd doc && ./update_magic.sh" ),
8181

82-
('doc/ipython.1.gz',
83-
['doc/ipython.1'],
84-
"cd doc && gzip -9c ipython.1 > ipython.1.gz"),
82+
('docs/man/ipython.1.gz',
83+
['docs/man/ipython.1'],
84+
"cd docs/man && gzip -9c ipython.1 > ipython.1.gz"),
8585

86-
('doc/pycolor.1.gz',
87-
['doc/pycolor.1'],
88-
"cd doc && gzip -9c pycolor.1 > pycolor.1.gz"),
86+
('docs/man/pycolor.1.gz',
87+
['docs/man/pycolor.1'],
88+
"cd docs/man && gzip -9c pycolor.1 > pycolor.1.gz"),
8989
]
9090

9191
# Only build the docs is sphinx is present
@@ -101,8 +101,8 @@
101101
# The do_sphinx scripts builds html and pdf, so just one
102102
# target is enough to cover all manual generation
103103
# to_update.append(
104-
# ('doc/manual/ipython.pdf',
105-
# ['IPython/Release.py','doc/source/ipython.rst'],
104+
# ('docs/manual/ipython.pdf',
105+
# ['IPython/Release.py','docs/source/ipython.rst'],
106106
# "cd docs && python do_sphinx.py")
107107
# )
108108
[ target_update(*t) for t in to_update ]

setupbase.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,10 @@ def find_data_files():
158158
exclude = ('.sh','.1.gz')
159159
# We need to figure out how we want to package all of our rst docs?
160160
# docfiles = filter(lambda f:file_doesnt_endwith(f,exclude),glob('docs/*'))
161+
# XXX - For now all the example files
161162
examfiles = filter(isfile, glob('docs/examples/core/*.py'))
162-
examfiles.append(filter(isfile, glob('docs/examples/kernel/*.py')))
163+
examfiles += filter(isfile, glob('docs/examples/kernel/*.py'))
164+
163165
manpages = filter(isfile, glob('docs/man/*.1.gz'))
164166
igridhelpfiles = filter(isfile, glob('IPython/Extensions/igrid_help.*'))
165167

@@ -168,9 +170,14 @@ def find_data_files():
168170
('data', manpagebase, manpages),
169171
('data',pjoin(docdirbase, 'extensions'),igridhelpfiles),
170172
]
171-
# import pprint
172-
# pprint.pprint(data_files)
173-
return []
173+
174+
## import pprint # dbg
175+
## print '*'*80
176+
## print 'data files'
177+
## pprint.pprint(data_files)
178+
## print '*'*80
179+
180+
return data_files
174181

175182
#---------------------------------------------------------------------------
176183
# Find scripts

0 commit comments

Comments
 (0)