Merge pull request #45 from khaledhosny/setup
Add setup.py file to ufo3k branch
This commit is contained in:
commit
2c2ffb97c0
76
setup.py
Executable file
76
setup.py
Executable file
@ -0,0 +1,76 @@
|
||||
#! /usr/bin/env python
|
||||
|
||||
import os, sys
|
||||
from distutils.core import setup, Extension
|
||||
|
||||
try:
|
||||
# load py2exe distutils extension, if available
|
||||
import py2exe
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
try:
|
||||
import numpy
|
||||
except ImportError:
|
||||
print "*** Warning: FontTools needs the numpy library for some operations, see:"
|
||||
print " http://numpy.scipy.org/"
|
||||
|
||||
try:
|
||||
import fontTools
|
||||
except ImportError:
|
||||
print "*** Warning: RoboFab needs FontTools for some operations, see:"
|
||||
print " http://sourceforge.net/projects/fonttools/"
|
||||
|
||||
|
||||
if sys.version_info > (2, 3, 0, 'alpha', 1):
|
||||
# Trove classifiers for PyPI
|
||||
classifiers = {"classifiers": [
|
||||
"Development Status :: 4 - Beta",
|
||||
"Environment :: Console",
|
||||
"Environment :: Other Environment",
|
||||
"Intended Audience :: Developers",
|
||||
"Intended Audience :: End Users/Desktop",
|
||||
"License :: OSI Approved :: BSD License",
|
||||
"Natural Language :: English",
|
||||
"Operating System :: OS Independent",
|
||||
"Programming Language :: Python",
|
||||
"Topic :: Multimedia :: Graphics",
|
||||
"Topic :: Multimedia :: Graphics :: Graphics Conversion",
|
||||
]}
|
||||
else:
|
||||
classifiers = {}
|
||||
|
||||
long_description = """\
|
||||
RoboFab is a Python library with objects that deal with data usually associated with fonts and type design. RoboFab reads and writes UFO font files and works in any Python 2.3 (and 2.2.1), 2.4. 2.5, 2.6, 2.7. The RoboFab code for FontLab works in in FontLab 4.6, FontLab Studio 5.04, 5.1 and hopefully up.
|
||||
"""
|
||||
|
||||
setup(
|
||||
name = "robofab",
|
||||
version = "1.2",
|
||||
description = "Tools to manipulate font sources",
|
||||
author = "Just van Rossum, Tal Leming, Erik van Blokland, others",
|
||||
author_email = "info@robofab.com",
|
||||
maintainer = "Just van Rossum, Tal Leming, Erik van Blokland",
|
||||
maintainer_email = "info@robofab.com",
|
||||
url = "http://robofab.com/",
|
||||
license = "OpenSource, BSD-style",
|
||||
platforms = ["Any"],
|
||||
long_description = long_description,
|
||||
|
||||
packages = [
|
||||
"",
|
||||
"robofab",
|
||||
"robofab.interface",
|
||||
"robofab.interface.mac",
|
||||
"robofab.interface.win",
|
||||
"robofab.interface.all",
|
||||
"robofab.misc",
|
||||
"robofab.objects",
|
||||
"robofab.pens",
|
||||
"robofab.tools",
|
||||
"ufoLib",
|
||||
],
|
||||
package_dir = {'': 'Lib'},
|
||||
#extra_path = 'FontTools',
|
||||
**classifiers
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user