[cig-commits] [commit] v1.9-stable: Remove Python egg stuff from application scripts. (0cc6271)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Thu Sep 26 13:41:54 PDT 2013
Repository : ssh://geoshell/pylith
On branch : v1.9-stable
Link : https://github.com/geodynamics/pylith/compare/f0c6fe37d628908afd6f03f4e7d56f98105e1797...0cc6271e68f0277dec5f41f9903c03a8cf81928d
>---------------------------------------------------------------
commit 0cc6271e68f0277dec5f41f9903c03a8cf81928d
Author: Brad Aagaard <baagaard at usgs.gov>
Date: Thu Sep 26 13:37:22 2013 -0700
Remove Python egg stuff from application scripts.
>---------------------------------------------------------------
0cc6271e68f0277dec5f41f9903c03a8cf81928d
applications/pylith.in | 12 ------------
applications/utilities/pylith_eqinfo.in | 13 -------------
applications/utilities/pylith_genxdmf.in | 3 ---
applications/utilities/pylithinfo.in | 3 ---
4 files changed, 31 deletions(-)
diff --git a/applications/pylith.in b/applications/pylith.in
index 2a5c82f..69b2382 100644
--- a/applications/pylith.in
+++ b/applications/pylith.in
@@ -20,20 +20,8 @@
## @file applications/pylith
## @brief Python PyLith application driver
-__requires__ = "PyLith"
-
if __name__ == "__main__":
- # re-create the PYTHONPATH at 'configure' time
- import os.path, sys, site
- path = '@PYTHONPATH@'.split(':')
- path.reverse()
- for directory in path:
- if directory:
- directory = os.path.abspath(directory)
- sys.path.insert(1, directory)
- site.addsitedir(directory)
-
from pylith.apps.PyLithApp import PyLithApp
from pyre.applications import start
start(applicationClass=PyLithApp)
diff --git a/applications/utilities/pylith_eqinfo.in b/applications/utilities/pylith_eqinfo.in
index 7dd2ed4..48ceed6 100755
--- a/applications/utilities/pylith_eqinfo.in
+++ b/applications/utilities/pylith_eqinfo.in
@@ -31,22 +31,9 @@
#
# NOTE: Works with HDF5 files, not VTK files.
-__requires__ = "PyLith"
-
-
# ----------------------------------------------------------------------
if __name__ == "__main__":
- # re-create the PYTHONPATH at 'configure' time
- import os.path, sys, site
- path = '@PYTHONPATH@'.split(':')
- path.reverse()
- for directory in path:
- if directory:
- directory = os.path.abspath(directory)
- sys.path.insert(1, directory)
- site.addsitedir(directory)
-
from pylith.apps.EqInfoApp import EqInfoApp
from pyre.applications import start
start(applicationClass=EqInfoApp)
diff --git a/applications/utilities/pylith_genxdmf.in b/applications/utilities/pylith_genxdmf.in
index aa67dc8..4445df5 100755
--- a/applications/utilities/pylith_genxdmf.in
+++ b/applications/utilities/pylith_genxdmf.in
@@ -23,9 +23,6 @@
#
# Usage: pylith_genxdmf --file=FILE
-__requires__ = "PyLith"
-
-
# ======================================================================
class GenXdmfApp(object):
"""
diff --git a/applications/utilities/pylithinfo.in b/applications/utilities/pylithinfo.in
index a238d31..be90a13 100755
--- a/applications/utilities/pylithinfo.in
+++ b/applications/utilities/pylithinfo.in
@@ -25,9 +25,6 @@
#
# Usage: pylithinfo.py [--verbose] [--fileout=FILE] [PyLith args]
-__requires__ = "PyLith"
-
-
# ======================================================================
class ParametersApp(object):
"""
More information about the CIG-COMMITS
mailing list