mirror of
https://github.com/wassname/pyreadline.git
synced 2026-06-27 16:10:38 +08:00
Fix setup.py for new package structure.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
include pyreadline/configuration/pyreadlineconfig.ini
|
||||
@@ -22,7 +22,7 @@ name = 'pyreadline'
|
||||
|
||||
branch = 'refactor'
|
||||
|
||||
version = '1.4.svn'
|
||||
version = '1.4'
|
||||
|
||||
revision = '$Revision$'
|
||||
|
||||
|
||||
@@ -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/*")),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user