mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update the version of ipython in the OS X build
This commit is contained in:
parent
13bdcf83b5
commit
23e620a0d5
@ -482,6 +482,10 @@ class Py2App(object):
|
|||||||
shutil.rmtree(tdir)
|
shutil.rmtree(tdir)
|
||||||
shutil.rmtree(os.path.join(self.site_packages, 'calibre', 'plugins'))
|
shutil.rmtree(os.path.join(self.site_packages, 'calibre', 'plugins'))
|
||||||
self.remove_bytecode(join(self.resources_dir, 'Python', 'site-packages'))
|
self.remove_bytecode(join(self.resources_dir, 'Python', 'site-packages'))
|
||||||
|
# Create dummy IPython README_STARTUP
|
||||||
|
with open(join(self.site_packages,
|
||||||
|
'IPython/config/profile/README_STARTUP'), 'wb') as f:
|
||||||
|
f.write('\n')
|
||||||
|
|
||||||
@flush
|
@flush
|
||||||
def add_modules_from_dir(self, src):
|
def add_modules_from_dir(self, src):
|
||||||
@ -551,6 +555,15 @@ class Py2App(object):
|
|||||||
if dest2.endswith('.so'):
|
if dest2.endswith('.so'):
|
||||||
self.fix_dependencies_in_lib(dest2)
|
self.fix_dependencies_in_lib(dest2)
|
||||||
self.remove_bytecode(join(self.resources_dir, 'Python', 'lib'))
|
self.remove_bytecode(join(self.resources_dir, 'Python', 'lib'))
|
||||||
|
confdir = join(self.resources_dir, 'Python',
|
||||||
|
'lib/python%s/config'%self.version_info)
|
||||||
|
os.makedirs(confdir)
|
||||||
|
shutil.copy2(join(src, 'config/Makefile'), confdir)
|
||||||
|
incdir = join(self.resources_dir, 'Python',
|
||||||
|
'include/python'+self.version_info)
|
||||||
|
os.makedirs(incdir)
|
||||||
|
shutil.copy2(join(src.replace('/lib/', '/include/'), 'pyconfig.h'),
|
||||||
|
incdir)
|
||||||
|
|
||||||
@flush
|
@flush
|
||||||
def remove_bytecode(self, dest):
|
def remove_bytecode(self, dest):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user