review packaging - isolate wsgi in a subdir
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 5 Feb 2013 09:45:25 +0000 (10:45 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 5 Feb 2013 09:45:25 +0000 (10:45 +0100)
this needs changes in myplc that are only ongoing

apache/ModPython.py [moved from ModPython.py with 100% similarity]
apache/ModPythonJson.py [moved from ModPythonJson.py with 100% similarity]
apache/plc.wsgi [moved from ModWSGI.wsgi with 100% similarity]
setup.py

similarity index 100%
rename from ModPython.py
rename to apache/ModPython.py
similarity index 100%
rename from ModPythonJson.py
rename to apache/ModPythonJson.py
similarity index 100%
rename from ModWSGI.wsgi
rename to apache/plc.wsgi
index 3291cd5..e52e4b6 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -9,11 +9,12 @@
 from distutils.core import setup
 from glob import glob
 
-setup(py_modules = ['ModPython'],
-      packages = ['PLC', 'PLC/Methods', 'PLC/Methods/system', 'PLC/Accessors', 'aspects'],
+setup(packages = ['PLC', 'PLC/Methods', 'PLC/Methods/system', 'PLC/Accessors', 'aspects'],
       scripts = ['plcsh', 'Server.py'],
       data_files = [
-        ('', ['planetlab5.sql' , 'ModWSGI.wsgi' ]),
+        ('', ['planetlab5.sql']),
+        # don't package for mod_python anymore
+        (' apache', ['plc.wsgi']),
         ('php', ['php/plc_api.php']),
         ('migrations', 
          ['migrations/README.txt',