# 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
%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
# 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'])])