- install scripts
authorMark Huang <mlhuang@cs.princeton.edu>
Fri, 27 Oct 2006 19:53:25 +0000 (19:53 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Fri, 27 Oct 2006 19:53:25 +0000 (19:53 +0000)
PLCAPI.spec
setup.py

index 3334388..82224dd 100644 (file)
@@ -36,6 +36,7 @@ rm -rf $RPM_BUILD_ROOT
 # Install in /usr/share/plc_api
 %{__python} setup.py install \
     --install-purelib=$RPM_BUILD_ROOT/%{_datadir}/plc_api \
+    --install-scripts=$RPM_BUILD_ROOT/%{_datadir}/plc_api \
     --install-data=$RPM_BUILD_ROOT/%{_datadir}/plc_api
 
 # Install shell symlink
@@ -49,7 +50,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(-,root,root,-)
 %doc doc/PLCAPI.xml doc/PLCAPI.pdf doc/PLCAPI.html
 %dir %{_datadir}/plc_api
-%{_datadir}/plc_api
+%{_datadir}/plc_api/*
 %{_bindir}/plcsh
 
 %changelog
index 560db25..249da4d 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -5,11 +5,12 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: setup.py,v 1.1 2005/12/22 21:43:25 mlhuang Exp $
+# $Id: setup.py,v 1.1 2006/10/27 18:54:21 mlhuang Exp $
 #
 
 from distutils.core import setup
 
 setup(py_modules = ['ModPython'],
       packages = ['PLC', 'PLC/Methods'],
+      scripts = ['Shell.py', 'Server.py', 'Test.py'],
       data_files = [('php', ['php/plc_api.php'])])