2008-08-02 06:16:59 +02:00
|
|
|
---
|
|
|
|
MANIFEST.in | 15 +++++++++++++++
|
|
|
|
setup.py | 28 +++++++++++++++++++++++++++-
|
|
|
|
2 files changed, 42 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
--- /dev/null
|
|
|
|
+++ b/MANIFEST.in
|
2007-03-14 12:37:19 +01:00
|
|
|
@@ -0,0 +1,15 @@
|
|
|
|
+include ANSI.py
|
|
|
|
+include fdpexpect.py
|
|
|
|
+include FSM.py
|
|
|
|
+include INSTALL
|
|
|
|
+include LICENSE
|
|
|
|
+include Makefile
|
|
|
|
+include MANIFEST.in
|
|
|
|
+include pexpect.py
|
|
|
|
+include pxssh.py
|
|
|
|
+include PKG-INFO
|
|
|
|
+include README
|
|
|
|
+include screen.py
|
|
|
|
+include setup.py
|
|
|
|
+recursive-include doc *
|
|
|
|
+recursive-include examples *
|
2008-08-02 06:16:59 +02:00
|
|
|
--- a/setup.py
|
|
|
|
+++ b/setup.py
|
|
|
|
@@ -3,7 +3,27 @@ $Revision: 485 $
|
|
|
|
$Date: 2007-07-12 15:23:15 -0700 (Thu, 12 Jul 2007) $
|
2007-03-14 12:37:19 +01:00
|
|
|
'''
|
|
|
|
from distutils.core import setup
|
|
|
|
-setup (name='pexpect',
|
|
|
|
+from distutils.command.bdist_rpm import bdist_rpm
|
|
|
|
+
|
|
|
|
+NAME = "python-pexpect"
|
|
|
|
+
|
|
|
|
+def getdoc():
|
|
|
|
+ import os
|
|
|
|
+ result = ['INSTALL','LICENSE','README','PKG-INFO']
|
|
|
|
+ list = os.listdir(os.path.join(os.curdir, 'doc'))
|
|
|
|
+ for file in list:
|
|
|
|
+ result.append(os.path.join('doc', file))
|
|
|
|
+ return result
|
|
|
|
+
|
|
|
|
+def getexamples():
|
|
|
|
+ import os
|
|
|
|
+ result = []
|
|
|
|
+ list = os.listdir(os.path.join(os.curdir, 'examples'))
|
|
|
|
+ for file in list:
|
|
|
|
+ result.append(os.path.join('examples', file))
|
|
|
|
+ return result
|
|
|
|
+
|
|
|
|
+setup (name=NAME,
|
2008-08-02 06:16:59 +02:00
|
|
|
version='2.3',
|
|
|
|
py_modules=['pexpect', 'pxssh', 'fdpexpect', 'FSM', 'screen', 'ANSI'],
|
2007-03-14 12:37:19 +01:00
|
|
|
description='Pexpect is a pure Python Expect. It allows easy control of other applications.',
|
2008-08-02 06:16:59 +02:00
|
|
|
@@ -12,6 +32,12 @@ setup (name='pexpect',
|
2007-03-14 12:37:19 +01:00
|
|
|
url='http://pexpect.sourceforge.net/',
|
|
|
|
license='MIT license',
|
|
|
|
platforms='UNIX',
|
|
|
|
+ data_files = [("share/doc/packages/"+NAME, getdoc()),
|
|
|
|
+ ("share/doc/packages/"+NAME+"/examples",getexamples())],
|
|
|
|
+ cmdclass = {
|
|
|
|
+ 'bdist_rpm': bdist_rpm
|
|
|
|
+ }
|
2008-08-02 06:16:59 +02:00
|
|
|
+
|
2007-03-14 12:37:19 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
# classifiers = [
|