X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=setup.py;h=e2a59313afdd482682985f4496e7f2ed0f584e2c;hb=b9cb2812533eec9ba35576c0e25152e1dc5e2557;hp=5465bc4ea9baa316c6e8c3219189879481c192a3;hpb=4fe47ec1a445850b0ea3b4e6876ecfc67f7a900e;p=plcapi.git diff --git a/setup.py b/setup.py index 5465bc4..e2a5931 100755 --- a/setup.py +++ b/setup.py @@ -1,20 +1,33 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # # Setup script for PLCAPI # # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: setup.py,v 1.6 2007/01/30 11:27:12 thierry Exp $ -# -from distutils.core import setup +from setuptools import setup +from glob import glob -setup(py_modules = ['ModPython'], - packages = ['PLC', 'PLC/Methods', 'PLC/Methods/system'], - scripts = ['plcsh', 'Server.py', 'Test.py'], - data_files = [('', ['planetlab4.sql']), - ('php', ['php/plc_api.php']), -# ('migrations', ['migrations/*.sql','migrations/README.txt']), - ('migrations', ['migrations/README.txt']), - ]) +setup( + name="plc_api", + packages = ['PLC', 'PLC/Methods', 'PLC/Methods/system', 'PLC/Accessors'], + scripts = ['plcsh', 'Server.py'], + data_files = [ + ('', + ['planetlab5.sql']), + # package for mod_python and mod_wsgi, defer choice to myplc + ('apache', + ['apache/ModPython.py', + 'apache/__init__.py', + 'apache/plc.wsgi']), + ('php', + ['php/plc_api.php']), + ('migrations', + ['migrations/README.txt', + 'migrations/extract-views.py'] + + glob('migrations/[0-9][0-9][0-9]*')), + ('extensions', + ['extensions/README.txt']), + ] +)