-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
48 lines (40 loc) · 1.7 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env python
"""Distutils setup script for 'latexslides'."""
import sys, os, shutil, glob
from distutils.core import setup
# setuptools not a good idea because of style files
name = 'latexslides'
styles = os.path.join('styles', '*.sty')
styles_files = glob.glob(styles)
# The next line should probably have a Windows alternative:
styles_dir = os.path.join('share', 'texmf', 'tex', 'latex', name)
data_files = [(styles_dir, styles_files)]
out = setup(name=name,
#dry_run=True,
version="0.3",
description="A package for writing slides using Python",
author="Ilmar M. Wilbers",
author_email="[email protected]",
url="http://latexslides.googlecode.com",
license="BSD",
platforms=["Linux", "Mac OSX", "Unix", "Windows"],
package_dir={'':'lib'},
packages = ['latexslides'],
keywords=["latexslides", "beamer", "prosper"],
data_files=data_files,
scripts=[os.path.join("bin", "latexslides"),
os.path.join("bin", "extract_slidenames"),
os.path.join("bin", "create_slidenames"),
os.path.join("bin", "pdf2odp"),
],
)
try:
install_data = out.get_command_obj('install').install_data
if install_data:
print '\n*** LaTeX style files are located in:'
print ' %s' %(os.path.join(install_data, styles_dir))
print ' Please make sure the latex command can'
print ' locate them, see the README file.'
except:
print '\n*** Please make sure the latex command can locate'
print ' the LaTeX style files, see the README file.'