aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorAdrien Tétar2015-04-26 07:17:08 +0200
committerAdrien Tétar2015-04-26 07:17:08 +0200
commitffa541ce34fae21bf1b7a00d3b0ef9d30f702901 (patch)
treeeff3f2a13bf7dc5849df17e541738e3adbf9c249 /setup.py
downloadtrufont-ffa541ce34fae21bf1b7a00d3b0ef9d30f702901.tar.bz2
Basically works
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py45
1 files changed, 45 insertions, 0 deletions
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..51394c0
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,45 @@
+#!/usr/bin/env python
+
+import sys
+from distutils.core import setup
+
+try:
+ import fontTools
+except:
+ print "*** Warning: defcon requires FontTools, see:"
+ print " fonttools.sf.net"
+
+try:
+ import robofab
+except:
+ print "*** Warning: defcon requires RoboFab, see:"
+ print " robofab.com"
+
+#if "sdist" in sys.argv:
+# import os
+# import subprocess
+# import shutil
+# docFolder = os.path.join(os.getcwd(), "documentation")
+# # remove existing
+# doctrees = os.path.join(docFolder, "build", "doctrees")
+# if os.path.exists(doctrees):
+# shutil.rmtree(doctrees)
+# # compile
+# p = subprocess.Popen(["make", "html"], cwd=docFolder)
+# p.wait()
+# # remove doctrees
+# shutil.rmtree(doctrees)
+
+
+
+setup(name="defconQt",
+ version="0.1",
+ description="A set of QT interface objects for working with font data.",
+ author="Adrien Tétar",
+ author_email="adri-from-59@hotmail.fr",
+# url="",
+ license="GNU GPL v3",
+ # TODO: populate
+ packages=["defconQt"],
+ package_dir={"":"Lib"}
+) \ No newline at end of file