[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/gnuef setup.cfg setup.py
From: |
James Thompson |
Subject: |
gnue/gnuef setup.cfg setup.py |
Date: |
Thu, 25 Jan 2001 14:39:30 -0800 |
CVSROOT: /cvs
Module name: gnue
Changes by: James Thompson <address@hidden> 01/01/25 14:39:30
Modified files:
gnuef : setup.cfg setup.py
Log message:
Setup enhancements
CVSWeb URLs:
http://subversions.gnu.org/cgi-bin/cvsweb/gnue/gnuef/setup.cfg.diff?r1=1.1&r2=1.2
http://subversions.gnu.org/cgi-bin/cvsweb/gnue/gnuef/setup.py.diff?r1=1.7&r2=1.8
Patches:
Index: gnue/gnuef/setup.cfg
diff -u gnue/gnuef/setup.cfg:1.1 gnue/gnuef/setup.cfg:1.2
--- gnue/gnuef/setup.cfg:1.1 Wed Jan 24 19:13:19 2001
+++ gnue/gnuef/setup.cfg Thu Jan 25 14:39:30 2001
@@ -1,2 +1,2 @@
[bdist_rpm]
-doc_files = samples/
+doc_files = README, README.curses, samples
Index: gnue/gnuef/setup.py
diff -u gnue/gnuef/setup.py:1.7 gnue/gnuef/setup.py:1.8
--- gnue/gnuef/setup.py:1.7 Wed Jan 24 19:13:19 2001
+++ gnue/gnuef/setup.py Thu Jan 25 14:39:30 2001
@@ -1,14 +1,104 @@
#!/usr/bin/env python
+import sys
import string
-from distutils.core import setup
-from setupext import Data_Files, install_Data_Files
+
+try:
+ from distutils.core import setup
+ from setupext import Data_Files, install_Data_Files
+except ImportError:
+ print """
+Setup requires that python's distutils be
+installed. You can get a copy of it from
+http://www.python.org/sigs/distutils-sig/
+
+"""
+ sys.exit()
+
+# Verify that our python base is installed
+try:
+ print "Checking for GNUe Python Base....",
+ import gnue
+ print "OK"
+except ImportError:
+ print """
+You will need to install our base
+python package before gnuef will
+function properly. You can obtain
+a copy from
+
+http://gnue.org/index.cgi/downloads
+"""
+ sys.exit()
+
+
+# Verify that PyXML is installed
+try:
+ print "Checking for PyXML....",
+ from xml.sax import saxexts
+ from xml.sax import saxlib
+ print "OK"
+except ImportError:
+ print """
+Your system does not appear to have the
+PyXML module installed. GNUe Forms will
+not function without it. It is available
+at http://sourceforge.net/projects/pyxml
+"""
+ sys.exit()
+
+#
+# Verify at least one UI is installed
+#
+UIOK = 0
+
+print "Checking for avalable UI drivers...."
+# PyNcurses
+try:
+ print " Pyncurses....",
+ import ncurses.form
+ print "OK"
+ UIOK = 1
+except ImportError:
+ print "No"
+
+# Curses
+try:
+ print " Curses....",
+ import curses
+ print "OK"
+ UIOK = 1
+except ImportError:
+ print "No"
+
+# wxPython
+try:
+ print " wxPython....",
+ from wxPython.wx import *
+ print "OK"
+ UIOK = 1
+except ImportError:
+ print "No"
+
+if UIOK != 1:
+ print """
+No valid UI drivers are installed on this machine:
+ wxPython - www.wxpython.org
+ pyncurses - pyncurses.sourceforge.net
+ python curses - Read python install docs on how to activate
+"""
+ sys.exit()
+
+#
+# Verify DB driver of some sort installed
+#
+# Maybe later :)
+
imagefiles="""
recursive-include images *.bmp
"""
-
images = [
- Data_Files(base_dir='/usr/local/gnue/',
- copy_to = 'shared',
+ Data_Files(
+ copy_to = '/usr/local/gnue/shared',
template = string.split(imagefiles,"\n"),
preserve_path = 1)
]
@@ -20,7 +110,11 @@
author = "GNUe Forms Team",
author_email = "address@hidden",
url = "http://www.gnue.org",
-# data_files = images,
+
+ # Override certain command classes with our own ones
+ cmdclass = {'install_data':install_Data_Files},
+
+ data_files = images,
packages = ["gnue.forms",
"gnue.forms.drivers",
"gnue.forms.drivers.geas",
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue/gnuef setup.cfg setup.py,
James Thompson <=