after fixing MANIFEST.in, let's also make sure that we are installing the postscripts of the latex docs
This commit is contained in:
@@ -45,6 +45,7 @@ class Install(install):
|
|||||||
def run(self):
|
def run(self):
|
||||||
install.run(self)
|
install.run(self)
|
||||||
self.installi18n()
|
self.installi18n()
|
||||||
|
self.installdoc()
|
||||||
|
|
||||||
def installi18n(self):
|
def installi18n(self):
|
||||||
for lang in i18n_languages.split(' '):
|
for lang in i18n_languages.split(' '):
|
||||||
@@ -60,9 +61,21 @@ class Install(install):
|
|||||||
shutil.copy("po/%s.mo" % lang, os.path.join(destpath, "%s.mo" % i18n_domain))
|
shutil.copy("po/%s.mo" % lang, os.path.join(destpath, "%s.mo" % i18n_domain))
|
||||||
|
|
||||||
def installdoc(self): #TODO: not decided if we have to
|
def installdoc(self): #TODO: not decided if we have to
|
||||||
|
os.chdir('doc')
|
||||||
|
for tex in glob.glob('*.tex'):
|
||||||
|
print 'Compiling', tex
|
||||||
|
os.system('latex %s' % tex)
|
||||||
|
dvi = tex[:-3] + 'dvi'
|
||||||
|
ps = tex[:-3] + 'ps'
|
||||||
|
os.system('dvips %s -o %s' % (dvi, ps))
|
||||||
|
destpath = os.path.join(self.root, "usr/share/doc/pisi")
|
||||||
|
try:
|
||||||
|
os.makedirs(destpath)
|
||||||
|
except:
|
||||||
pass
|
pass
|
||||||
#for tex in glob.glob('doc/*.tex'):
|
print 'Installing', ps
|
||||||
# print tex
|
shutil.copy(ps, os.path.join(destpath, ps))
|
||||||
|
os.chdir('..')
|
||||||
|
|
||||||
setup(name="pisi",
|
setup(name="pisi",
|
||||||
version= getVersion(),
|
version= getVersion(),
|
||||||
|
|||||||
Reference in New Issue
Block a user