[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5313 - in trunk: gnue-appserver gnue-common gnue-common/src/setup gnue-
From: |
reinhard |
Subject: |
r5313 - in trunk: gnue-appserver gnue-common gnue-common/src/setup gnue-designer gnue-forms gnue-navigator gnue-reports |
Date: |
Fri, 12 Mar 2004 15:23:29 -0600 (CST) |
Author: reinhard
Date: 2004-03-12 15:23:28 -0600 (Fri, 12 Mar 2004)
New Revision: 5313
Modified:
trunk/gnue-appserver/setup.py
trunk/gnue-common/setup.py
trunk/gnue-common/src/setup/GSetup.py
trunk/gnue-designer/setup.py
trunk/gnue-forms/setup.py
trunk/gnue-navigator/setup.py
trunk/gnue-reports/setup.py
Log:
Don't generate unnecessary files on setup.py build/install.
Modified: trunk/gnue-appserver/setup.py
===================================================================
--- trunk/gnue-appserver/setup.py 2004-03-12 18:21:38 UTC (rev 5312)
+++ trunk/gnue-appserver/setup.py 2004-03-12 21:23:28 UTC (rev 5313)
@@ -87,7 +87,7 @@
# Gets called on sdist (always) and on build/install (only when run from
SVN).
# ---------------------------------------------------------------------------
- def build_files (self):
+ def build_files (self, action):
# all this only works on posix systems :-(
if os.name != "posix":
@@ -101,12 +101,13 @@
print "Could not find 'makeinfo'. Please install Texinfo 4.0 or greater."
sys.exit (1)
- # create-technote-index from gnue-common/utils
- file = "../gnue-common/utils/create-technote-index.py"
- if not os.path.isfile (file):
- print "Could not find file '%s'." % file
- print "Please download gnue-common 0.5.0 or greater."
- sys.exit (1)
+ if action == 'sdist':
+ # create-technote-index from gnue-common/utils
+ file = "../gnue-common/utils/create-technote-index.py"
+ if not os.path.isfile (file):
+ print "Could not find file '%s'." % file
+ print "Please download gnue-common 0.5.0 or greater."
+ sys.exit (1)
# -------------------------------------------------------------------------
@@ -119,9 +120,10 @@
if os.system ("cd doc/whitepaper && make txt") != 0:
sys.exit (1)
- print "building documentation: doc/technotes"
- if os.system ("cd doc/technotes && make") != 0:
- sys.exit (1)
+ if action == 'sdist':
+ print "building documentation: doc/technotes"
+ if os.system ("cd doc/technotes && make") != 0:
+ sys.exit (1)
# Build sample SQL scripts
print "building sample sql scripts"
Modified: trunk/gnue-common/setup.py
===================================================================
--- trunk/gnue-common/setup.py 2004-03-12 18:21:38 UTC (rev 5312)
+++ trunk/gnue-common/setup.py 2004-03-12 21:23:28 UTC (rev 5313)
@@ -90,7 +90,7 @@
# Gets called on sdist (always) and on build/install (only when run from SVN).
# -----------------------------------------------------------------------------
-def build_files ():
+def build_files (action):
if os.name == 'posix':
@@ -116,9 +116,10 @@
# -------------------------------------------------------------------------
- # build ChangeLog file
- print 'building ChangeLog'
- ChangeLog.build ()
+ if action == 'sdist':
+ # build ChangeLog file
+ print 'building ChangeLog'
+ ChangeLog.build ()
# build translations
if os.path.isdir ('po'):
@@ -211,7 +212,7 @@
class sdist (distutils.command.sdist.sdist):
def run (self):
- build_files ()
+ build_files ('sdist')
distutils.command.sdist.sdist.run (self)
# =============================================================================
@@ -222,7 +223,7 @@
def run (self):
if not os.path.isfile ("PKG-INFO"): # downloaded from SVN?
- build_files ()
+ build_files ('build')
distutils.command.build.build.run (self)
# =============================================================================
Modified: trunk/gnue-common/src/setup/GSetup.py
===================================================================
--- trunk/gnue-common/src/setup/GSetup.py 2004-03-12 18:21:38 UTC (rev
5312)
+++ trunk/gnue-common/src/setup/GSetup.py 2004-03-12 21:23:28 UTC (rev
5313)
@@ -68,7 +68,7 @@
def run (self):
global _setup
- _setup.do_build_files ()
+ _setup.do_build_files ('sdist')
distutils.command.sdist.sdist.run (self)
# =============================================================================
@@ -81,7 +81,7 @@
global _setup
if not os.path.isfile ("PKG-INFO"): # downloaded from CVS?
- _setup.do_build_files ()
+ _setup.do_build_files ('build')
distutils.command.build.build.run (self)
# =============================================================================
@@ -153,7 +153,7 @@
def set_params (self, params):
pass
- def build_files (self):
+ def build_files (self, action):
pass
def check_dependencies (self):
@@ -163,7 +163,7 @@
# Build files if called from SVN
# ---------------------------------------------------------------------------
- def do_build_files (self):
+ def do_build_files (self, action):
if os.name == 'posix':
@@ -189,9 +189,10 @@
# -----------------------------------------------------------------------
- # build ChangeLog file
- print 'building ChangeLog'
- ChangeLog.build ()
+ if action == 'sdist':
+ # build ChangeLog file
+ print 'building ChangeLog'
+ ChangeLog.build ()
# build translations
if os.path.isdir ('po'):
Modified: trunk/gnue-designer/setup.py
===================================================================
--- trunk/gnue-designer/setup.py 2004-03-12 18:21:38 UTC (rev 5312)
+++ trunk/gnue-designer/setup.py 2004-03-12 21:23:28 UTC (rev 5313)
@@ -78,7 +78,7 @@
# Gets called on sdist (always) and on build/install (only when run from
SVN).
# ---------------------------------------------------------------------------
- def build_files (self):
+ def build_files (self, action):
# nothing to do here
pass
Modified: trunk/gnue-forms/setup.py
===================================================================
--- trunk/gnue-forms/setup.py 2004-03-12 18:21:38 UTC (rev 5312)
+++ trunk/gnue-forms/setup.py 2004-03-12 21:23:28 UTC (rev 5313)
@@ -116,7 +116,7 @@
# Gets called on sdist (always) and on build/install (only when run from
SVN).
# ---------------------------------------------------------------------------
- def build_files (self):
+ def build_files (self, action):
# nothing to do here
pass
Modified: trunk/gnue-navigator/setup.py
===================================================================
--- trunk/gnue-navigator/setup.py 2004-03-12 18:21:38 UTC (rev 5312)
+++ trunk/gnue-navigator/setup.py 2004-03-12 21:23:28 UTC (rev 5313)
@@ -78,7 +78,7 @@
# Gets called on sdist (always) and on build/install (only when run from
SVN).
# ---------------------------------------------------------------------------
- def build_files (self):
+ def build_files (self, action):
# nothing to do here
pass
Modified: trunk/gnue-reports/setup.py
===================================================================
--- trunk/gnue-reports/setup.py 2004-03-12 18:21:38 UTC (rev 5312)
+++ trunk/gnue-reports/setup.py 2004-03-12 21:23:28 UTC (rev 5313)
@@ -97,7 +97,7 @@
# Gets called on sdist (always) and on build/install (only when run from
SVN).
# ---------------------------------------------------------------------------
- def build_files (self):
+ def build_files (self, action):
# nothing to do here
pass
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5313 - in trunk: gnue-appserver gnue-common gnue-common/src/setup gnue-designer gnue-forms gnue-navigator gnue-reports,
reinhard <=