Fix setup.py for new package structure.

This commit is contained in:
jdh2358
2007-04-11 14:29:25 +00:00
parent 9079a43a8b
commit fa1abaad08
3 changed files with 15 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
include pyreadline/configuration/pyreadlineconfig.ini
+1 -1
View File
@@ -22,7 +22,7 @@ name = 'pyreadline'
branch = 'refactor'
version = '1.4.svn'
version = '1.4'
revision = '$Revision$'
+13 -1
View File
@@ -8,10 +8,22 @@
# the file COPYING, distributed as part of this software.
#*****************************************************************************
import os
import glob
# BEFORE importing distutils, remove MANIFEST. distutils doesn't properly
# update it when the contents of directories change.
if os.path.exists('MANIFEST'): os.remove('MANIFEST')
#
from distutils.core import setup
execfile('pyreadline/release.py')
packages = ['pyreadline','pyreadline.clipboard','pyreadline.configuration',
'pyreadline.console','pyreadline.keysyms','pyreadline.lineeditor',
'pyreadline.modes','pyreadline.test',
]
setup(name=name,
version = version,
description = description,
@@ -27,7 +39,7 @@ setup(name=name,
platforms = platforms,
keywords = keywords,
py_modules = ['readline'],
packages = ['pyreadline'],
packages = packages,
package_data = {'pyreadline':['configuration/*']},
data_files = [('share/doc/pyreadline', glob.glob("doc/*")),
]