From a935968c0af8e8682e4d8645a9f9fc47ca2a8bea Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Fri, 27 Oct 2006 19:53:25 +0000 Subject: [PATCH] - install scripts --- PLCAPI.spec | 3 ++- setup.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/PLCAPI.spec b/PLCAPI.spec index 3334388..82224dd 100644 --- a/PLCAPI.spec +++ b/PLCAPI.spec @@ -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 diff --git a/setup.py b/setup.py index 560db25..249da4d 100755 --- a/setup.py +++ b/setup.py @@ -5,11 +5,12 @@ # Mark Huang # 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'])]) -- 2.43.0