diff options
-rw-r--r-- | MANIFEST.in | 6 | ||||
-rw-r--r-- | SConstruct | 640 | ||||
-rw-r--r-- | setup.py | 25 | ||||
-rw-r--r-- | src/MANIFEST.in | 0 | ||||
-rw-r--r-- | src/engine/MANIFEST.in | 186 | ||||
-rw-r--r-- | src/setup.cfg | 8 | ||||
-rwxr-xr-x | src/setup.py | 522 |
7 files changed, 26 insertions, 1361 deletions
diff --git a/MANIFEST.in b/MANIFEST.in index 4e4ae5a..04aee14 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,5 @@ -recursive-exclude src/engine *Tests.py -global-exclude *Tests.py +global-exclude **Tests.py + recursive-include src/engine/SCons/Tool/docbook * + + @@ -184,470 +184,6 @@ env = Environment( Version_values = [Value(command_line.version), Value(command_line.build_id)] -# -# Define SCons packages. -# -# In the original, more complicated packaging scheme, we were going -# to have separate packages for: -# -# python-scons only the build engine -# scons-script only the script -# scons the script plus the build engine -# -# We're now only delivering a single "scons" package, but this is still -# "built" as two sub-packages (the build engine and the script), so -# the definitions remain here, even though we're not using them for -# separate packages. -# - -# from distutils.sysconfig import get_python_lib -# -# python_scons = { -# 'pkg': 'python-' + project, -# 'src_subdir': 'engine', -# 'inst_subdir': get_python_lib(), -# -# 'files': ['LICENSE.txt', -# 'README.txt', -# 'setup.cfg', -# 'setup.py', -# ], -# -# 'filemap': { -# 'LICENSE.txt': '../LICENSE.txt' -# }, -# -# 'buildermap': {}, -# -# 'explicit_deps': { -# 'SCons/__init__.py': Version_values, -# }, -# } - -# scons_script = { -# 'pkg': project + '-script', -# 'src_subdir': 'script', -# 'inst_subdir': 'bin', -# -# 'files': [ -# 'LICENSE.txt', -# 'README.txt', -# 'setup.cfg', -# 'setup.py', -# ], -# -# 'filemap': { -# 'LICENSE.txt': '../LICENSE.txt', -# 'scons': 'scons.py', -# 'sconsign': 'sconsign.py', -# 'scons-time': 'scons-time.py', -# 'scons-configure-cache': 'scons-configure-cache.py', -# }, -# -# 'buildermap': {}, -# -# 'explicit_deps': { -# 'scons': Version_values, -# 'sconsign': Version_values, -# }, -# } - -# scons = { -# 'pkg': project, -# -# 'files': [ -# 'CHANGES.txt', -# 'LICENSE.txt', -# 'README.txt', -# 'RELEASE.txt', -# 'scons.1', -# 'sconsign.1', -# 'scons-time.1', -# # 'script/scons.bat', -# 'setup.cfg', -# 'setup.py', -# ], -# -# 'filemap': { -# 'scons.1': '$BUILDDIR/doc/man/scons.1', -# 'sconsign.1': '$BUILDDIR/doc/man/sconsign.1', -# 'scons-time.1': '$BUILDDIR/doc/man/scons-time.1', -# }, -# -# 'buildermap': { -# 'scons.1': env.SOElim, -# 'sconsign.1': env.SOElim, -# 'scons-time.1': env.SOElim, -# }, -# -# 'subpkgs': [python_scons], -# -# 'subinst_dirs': { -# 'python-' + project: python_project_subinst_dir, -# project + '-script': project_script_subinst_dir, -# }, -# } -# -# scripts = ['scons', 'sconsign', 'scons-time', 'scons-configure-cache'] -# -# src_deps = [] -# src_files = [] -# -# for p in [scons]: -# # -# # Initialize variables with the right directories for this package. -# # -# pkg = p['pkg'] -# pkg_version = "%s-%s" % (pkg, command_line.version) -# -# src = 'src' -# if 'src_subdir' in p: -# src = os.path.join(src, p['src_subdir']) -# -# build = os.path.join(command_line.build_dir, pkg) -# -# tar_gz = os.path.join(build, 'dist', "%s.tar.gz" % pkg_version) -# platform_tar_gz = os.path.join(build, -# 'dist', -# "%s.%s.tar.gz" % (pkg_version, platform)) -# zip = os.path.join(build, 'dist', "%s.zip" % pkg_version) -# platform_zip = os.path.join(build, -# 'dist', -# "%s.%s.zip" % (pkg_version, platform)) -# -# # -# # Update the environment with the relevant information -# # for this package. -# # -# # We can get away with calling setup.py using a directory path -# # like this because we put a preamble in it that will chdir() -# # to the directory in which setup.py exists. -# # -# setup_py = os.path.join(build, 'setup.py') -# env.Replace(PKG=pkg, -# PKG_VERSION=pkg_version, -# SETUP_PY='"%s"' % setup_py) -# Local(setup_py) -# -# # -# # Read up the list of source files from our MANIFEST.in. -# # This list should *not* include LICENSE.txt, MANIFEST, -# # README.txt, or setup.py. Make a copy of the list for the -# # destination files. -# # -# manifest_in = File(os.path.join(src, 'MANIFEST.in')).rstr() -# src_files = bootstrap.parseManifestLines(src, manifest_in) -# raw_files = src_files[:] -# dst_files = src_files[:] -# -# MANIFEST_in_list = [] -# -# if 'subpkgs' in p: -# # -# # This package includes some sub-packages. Read up their -# # MANIFEST.in files, and add them to our source and destination -# # file lists, modifying them as appropriate to add the -# # specified subdirs. -# # -# for sp in p['subpkgs']: -# ssubdir = sp['src_subdir'] -# isubdir = p['subinst_dirs'][sp['pkg']] -# -# MANIFEST_in = File(os.path.join(src, ssubdir, 'MANIFEST.in')).rstr() -# MANIFEST_in_list.append(MANIFEST_in) -# files = bootstrap.parseManifestLines(os.path.join(src, ssubdir), MANIFEST_in) -# -# raw_files.extend(files) -# src_files.extend([os.path.join(ssubdir, x) for x in files]) -# -# files = [os.path.join(isubdir, x) for x in files] -# dst_files.extend(files) -# for k, f in sp['filemap'].items(): -# if f: -# k = os.path.join(ssubdir, k) -# p['filemap'][k] = os.path.join(ssubdir, f) -# for f, deps in sp['explicit_deps'].items(): -# f = os.path.join(build, ssubdir, f) -# env.Depends(f, deps) -# -# # -# # Now that we have the "normal" source files, add those files -# # that are standard for each distribution. Note that we don't -# # add these to dst_files, because they don't get installed. -# # And we still have the MANIFEST to add. -# # -# src_files.extend(p['files']) -# -# # -# # Now run everything in src_file through the sed command we -# # concocted to expand __FILE__, __VERSION__, etc. -# # -# for b in src_files: -# s = p['filemap'].get(b, b) -# if not s[0] == '$' and not os.path.isabs(s): -# s = os.path.join(src, s) -# -# builder = p['buildermap'].get(b, env.SCons_revision) -# x = builder(os.path.join(build, b), s) -# -# Local(x) -# -# # -# # NOW, finally, we can create the MANIFEST, which we do -# # by having Python spit out the contents of the src_files -# # array we've carefully created. After we've added -# # MANIFEST itself to the array, of course. -# # -# src_files.append("MANIFEST") -# MANIFEST_in_list.append(os.path.join(src, 'MANIFEST.in')) -# -# -# def write_src_files(target, source, **kw): -# global src_files -# src_files.sort() -# with open(str(target[0]), 'w') as f: -# for file in src_files: -# f.write(file + "\n") -# return 0 -# -# -# env.Command(os.path.join(build, 'MANIFEST'), -# MANIFEST_in_list, -# write_src_files) -# -# # -# # Now go through and arrange to create whatever packages we can. -# # -# build_src_files = [os.path.join(build, x) for x in src_files] -# Local(*build_src_files) -# -# distutils_formats = [] -# distutils_targets = [] -# dist_distutils_targets = [] -# -# for target in distutils_targets: -# dist_target = env.Install('$DISTDIR', target) -# AddPostAction(dist_target, Chmod(dist_target, 0o644)) -# dist_distutils_targets += dist_target -# -# if not gzip: -# print("gzip not found in %s; skipping .tar.gz package for %s." % (os.environ['PATH'], pkg)) -# else: -# -# distutils_formats.append('gztar') -# -# src_deps.append(tar_gz) -# -# distutils_targets.extend([tar_gz, platform_tar_gz]) -# -# dist_tar_gz = env.Install('$DISTDIR', tar_gz) -# dist_platform_tar_gz = env.Install('$DISTDIR', platform_tar_gz) -# Local(dist_tar_gz, dist_platform_tar_gz) -# AddPostAction(dist_tar_gz, Chmod(dist_tar_gz, 0o644)) -# AddPostAction(dist_platform_tar_gz, Chmod(dist_platform_tar_gz, 0o644)) -# -# # -# # Unpack the tar.gz archive created by the distutils into -# # build/unpack-tar-gz/scons-{version}. -# # -# # We'd like to replace the last three lines with the following: -# # -# # tar zxf $SOURCES -C $UNPACK_TAR_GZ_DIR -# # -# # but that gives heartburn to Cygwin's tar, so work around it -# # with separate zcat-tar-rm commands. -# # -# unpack_tar_gz_files = [os.path.join(unpack_tar_gz_dir, pkg_version, x) -# for x in src_files] -# env.Command(unpack_tar_gz_files, dist_tar_gz, [ -# Delete(os.path.join(unpack_tar_gz_dir, pkg_version)), -# "$ZCAT $SOURCES > .temp", -# "tar xf .temp -C $UNPACK_TAR_GZ_DIR", -# Delete(".temp"), -# ]) -# -# # -# # Run setup.py in the unpacked subdirectory to "install" everything -# # into our build/test subdirectory. The runtest.py script will set -# # PYTHONPATH so that the tests only look under build/test-{package}, -# # and under testing/framework (for the testing modules TestCmd.py, TestSCons.py, -# # etc.). This makes sure that our tests pass with what -# # we really packaged, not because of something hanging around in -# # the development directory. -# # -# # We can get away with calling setup.py using a directory path -# # like this because we put a preamble in it that will chdir() -# # to the directory in which setup.py exists. -# # -# dfiles = [os.path.join(test_tar_gz_dir, x) for x in dst_files] -# env.Command(dfiles, unpack_tar_gz_files, [ -# Delete(os.path.join(unpack_tar_gz_dir, pkg_version, 'build')), -# Delete("$TEST_TAR_GZ_DIR"), -# '$PYTHON $PYTHONFLAGS "%s" install "--prefix=$TEST_TAR_GZ_DIR" --standalone-lib' % \ -# os.path.join(unpack_tar_gz_dir, pkg_version, 'setup.py'), -# ]) -## -# -# def Digestify(target, source, env): -# import hashlib -# src = source[0].rfile() -# with open(str(src), 'rb') as f: -# contents = f.read() -# m = hashlib.md5() -# m.update(contents) -# sig = m.hexdigest() -# bytes = os.stat(str(src))[6] -# with open(str(target[0]), 'w') as f: -# f.write("MD5 %s %s %d\n" % (sig, src.name, bytes)) -# -# -# env.Command(digest, tar_gz, Digestify) -# -# if not zipit: -# print("zip not found; skipping .zip package for %s." % pkg) -# else: -# -# distutils_formats.append('zip') -# -# src_deps.append(zip) -# -# distutils_targets.extend([zip, platform_zip]) -# -# dist_zip = env.Install('$DISTDIR', zip) -# dist_platform_zip = env.Install('$DISTDIR', platform_zip) -# Local(dist_zip, dist_platform_zip) -# AddPostAction(dist_zip, Chmod(dist_zip, 0o644)) -# AddPostAction(dist_platform_zip, Chmod(dist_platform_zip, 0o644)) -# -# # -# # Unpack the zip archive created by the distutils into -# # build/unpack-zip/scons-{version}. -# # -# unpack_zip_files = [os.path.join(unpack_zip_dir, pkg_version, x) -# for x in src_files] -# -# env.Command(unpack_zip_files, dist_zip, [ -# Delete(os.path.join(unpack_zip_dir, pkg_version)), -# unzipit, -# ]) -# -# # -# # Run setup.py in the unpacked subdirectory to "install" everything -# # into our build/test subdirectory. The runtest.py script will set -# # PYTHONPATH so that the tests only look under build/test-{package}, -# # and under testing/framework (for the testing modules TestCmd.py, TestSCons.py, -# # etc.). This makes sure that our tests pass with what -# # we really packaged, not because of something hanging around in -# # the development directory. -# # -# # We can get away with calling setup.py using a directory path -# # like this because we put a preamble in it that will chdir() -# # to the directory in which setup.py exists. -# # -# dfiles = [os.path.join(test_zip_dir, x) for x in dst_files] -# env.Command(dfiles, unpack_zip_files, [ -# Delete(os.path.join(unpack_zip_dir, pkg_version, 'build')), -# Delete("$TEST_ZIP_DIR"), -# '$PYTHON $PYTHONFLAGS "%s" install "--prefix=$TEST_ZIP_DIR" --standalone-lib' % \ -# os.path.join(unpack_zip_dir, pkg_version, 'setup.py'), -# ]) -# -# # -# # Use the Python distutils to generate the appropriate packages. -# # -# commands = [ -# Delete(os.path.join(build, 'build', 'lib')), -# Delete(os.path.join(build, 'build', 'scripts')), -# ] -# -# if distutils_formats: -# commands.append(Delete(os.path.join(build, -# 'build', -# 'bdist.' + platform, -# 'dumb'))) -# for format in distutils_formats: -# commands.append("$PYTHON $PYTHONFLAGS $SETUP_PY bdist_dumb -f %s" % format) -# -# commands.append("$PYTHON $PYTHONFLAGS $SETUP_PY sdist --formats=%s" % \ -# ','.join(distutils_formats)) -# -# env.Command(distutils_targets, build_src_files, commands) -# -# # -# # Now create local packages for people who want to let people -# # build their SCons-buildable packages without having to -# # install SCons. -# # -# s_l_v = '%s-local-%s' % (pkg, command_line.version) -# -# local = pkg + '-local' -# build_dir_local = os.path.join(command_line.build_dir, local) -# build_dir_local_slv = os.path.join(command_line.build_dir, local, s_l_v) -# -# dist_local_tar_gz = os.path.join("$DISTDIR/%s.tar.gz" % s_l_v) -# dist_local_zip = os.path.join("$DISTDIR/%s.zip" % s_l_v) -# AddPostAction(dist_local_tar_gz, Chmod(dist_local_tar_gz, 0o644)) -# AddPostAction(dist_local_zip, Chmod(dist_local_zip, 0o644)) -# -# commands = [ -# Delete(build_dir_local), -# '$PYTHON $PYTHONFLAGS $SETUP_PY install "--install-script=%s" "--install-lib=%s" --no-install-man --no-compile --standalone-lib --no-version-script' % \ -# (build_dir_local, build_dir_local_slv), -# ] -# -# for script in scripts: -# # add .py extension for scons-local scripts on non-windows platforms -# if is_windows(): -# break -# local_script = os.path.join(build_dir_local, script) -# commands.append(Move(local_script + '.py', local_script)) -# -# rf = [x for x in raw_files if not x in scripts] -# rf = [os.path.join(s_l_v, x) for x in rf] -# for script in scripts: -# rf.append("%s.py" % script) -# local_targets = [os.path.join(build_dir_local, x) for x in rf] -# -# env.Command(local_targets, build_src_files, commands) -# -# scons_LICENSE = os.path.join(build_dir_local, 'scons-LICENSE') -# l = env.SCons_revision(scons_LICENSE, 'LICENSE-local') -# local_targets.append(l) -# Local(l) -# -# scons_README = os.path.join(build_dir_local, 'scons-README') -# l = env.SCons_revision(scons_README, 'README-local') -# local_targets.append(l) -# Local(l) -# -# if gzip: -# if is_windows(): -# # avoid problem with tar interpreting c:/ as a remote machine -# tar_cargs = '-cz --force-local -f' -# else: -# tar_cargs = '-czf' -# env.Command(dist_local_tar_gz, -# local_targets, -# "cd %s && tar %s $( ${TARGET.abspath} $) *" % (build_dir_local, tar_cargs)) -# -# unpack_targets = [os.path.join(test_local_tar_gz_dir, x) for x in rf] -# commands = [Delete(test_local_tar_gz_dir), -# Mkdir(test_local_tar_gz_dir), -# "cd %s && tar xzf $( ${SOURCE.abspath} $)" % test_local_tar_gz_dir] -# -# env.Command(unpack_targets, dist_local_tar_gz, commands) -# -# if zipit: -# env.Command(dist_local_zip, local_targets, zipit, -# CD=build_dir_local, PSV='.') -# -# unpack_targets = [os.path.join(test_local_zip_dir, x) for x in rf] -# commands = [Delete(test_local_zip_dir), -# Mkdir(test_local_zip_dir), -# unzipit] -# -# env.Command(unpack_targets, dist_local_zip, unzipit, -# UNPACK_ZIP_DIR=test_local_zip_dir) # # @@ -659,179 +195,3 @@ Export('command_line', 'env', 'whereis', 'revaction') SConscript('doc/SConscript') -# # -# # If we're running in a Git working directory, pack up a complete -# # source archive from the project files and files in the change. -# # -# -# -# sfiles = [l.split()[-1] for l in command_line.git_status_lines] -# if command_line.git_status_lines: -# # slines = [l for l in git_status_lines if 'modified:' in l] -# # sfiles = [l.split()[-1] for l in slines] -# pass -# else: -# print("Not building in a Git tree; skipping building src package.") -# -# if sfiles: -# remove_patterns = [ -# '*.gitignore', -# '*.hgignore', -# 'www/*', -# ] -# -# for p in remove_patterns: -# sfiles = [s for s in sfiles if not fnmatch.fnmatch(s, p)] -# -# if sfiles: -# ps = "%s-src" % project -# psv = "%s-%s" % (ps, command_line.version) -# b_ps = os.path.join(command_line.build_dir, ps) -# b_psv = os.path.join(command_line.build_dir, psv) -# b_psv_stamp = b_psv + '-stamp' -# -# src_tar_gz = os.path.join(command_line.build_dir, 'dist', '%s.tar.gz' % psv) -# src_zip = os.path.join(command_line.build_dir, 'dist', '%s.zip' % psv) -# -# Local(src_tar_gz, src_zip) -# -# for file in sfiles: -# if file.endswith('jpg') or file.endswith('png'): -# # don't revision binary files. -# env.Install(os.path.dirname(os.path.join(b_ps, file)), file) -# else: -# env.SCons_revision(os.path.join(b_ps, file), file) -# -# b_ps_files = [os.path.join(b_ps, x) for x in sfiles] -# cmds = [ -# Delete(b_psv), -# Copy(b_psv, b_ps), -# Touch("$TARGET"), -# ] -# -# env.Command(b_psv_stamp, src_deps + b_ps_files, cmds) -# -# Local(*b_ps_files) -# -# if gzip: -# env.Command(src_tar_gz, b_psv_stamp, -# "tar cz${TAR_HFLAG} -f $TARGET -C build %s" % psv) -# -# # -# # Unpack the archive into build/unpack/scons-{version}. -# # -# unpack_tar_gz_files = [os.path.join(unpack_tar_gz_dir, psv, x) -# for x in sfiles] -# -# # -# # We'd like to replace the last three lines with the following: -# # -# # tar zxf $SOURCES -C $UNPACK_TAR_GZ_DIR -# # -# # but that gives heartburn to Cygwin's tar, so work around it -# # with separate zcat-tar-rm commands. -# env.Command(unpack_tar_gz_files, src_tar_gz, [ -# Delete(os.path.join(unpack_tar_gz_dir, psv)), -# "$ZCAT $SOURCES > .temp", -# "tar xf .temp -C $UNPACK_TAR_GZ_DIR", -# Delete(".temp"), -# ]) -# -# # -# # Run setup.py in the unpacked subdirectory to "install" everything -# # into our build/test subdirectory. The runtest.py script will set -# # PYTHONPATH so that the tests only look under build/test-{package}, -# # and under testing/framework (for the testing modules TestCmd.py, -# # TestSCons.py, etc.). This makes sure that our tests pass with -# # what we really packaged, not because of something hanging around -# # in the development directory. -# # -# # We can get away with calling setup.py using a directory path -# # like this because we put a preamble in it that will chdir() -# # to the directory in which setup.py exists. -# # -# dfiles = [os.path.join(test_src_tar_gz_dir, x) for x in dst_files] -# scons_lib_dir = os.path.join(unpack_tar_gz_dir, psv, 'src', 'engine') -# ENV = env.Dictionary('ENV').copy() -# ENV['SCONS_LIB_DIR'] = scons_lib_dir -# ENV['USERNAME'] = command_line.developer -# env.Command(dfiles, unpack_tar_gz_files, -# [ -# Delete(os.path.join(unpack_tar_gz_dir, -# psv, -# 'build', -# 'scons', -# 'build')), -# Delete("$TEST_SRC_TAR_GZ_DIR"), -# 'cd "%s" && $PYTHON $PYTHONFLAGS "%s" "%s" VERSION="$VERSION"' % \ -# (os.path.join(unpack_tar_gz_dir, psv), -# os.path.join('src', 'script', 'scons.py'), -# os.path.join('build', 'scons')), -# '$PYTHON $PYTHONFLAGS "%s" install "--prefix=$TEST_SRC_TAR_GZ_DIR" --standalone-lib' % \ -# os.path.join(unpack_tar_gz_dir, -# psv, -# 'build', -# 'scons', -# 'setup.py'), -# ], -# ENV=ENV) -# -# if zipit: -# env.Command(src_zip, b_psv_stamp, zipit, CD='build', PSV=psv) -# -# # -# # Unpack the archive into build/unpack/scons-{version}. -# # -# unpack_zip_files = [os.path.join(unpack_zip_dir, psv, x) -# for x in sfiles] -# -# env.Command(unpack_zip_files, src_zip, [ -# Delete(os.path.join(unpack_zip_dir, psv)), -# unzipit -# ]) -# -# # -# # Run setup.py in the unpacked subdirectory to "install" everything -# # into our build/test subdirectory. The runtest.py script will set -# # PYTHONPATH so that the tests only look under build/test-{package}, -# # and under testing/framework (for the testing modules TestCmd.py, -# # TestSCons.py, etc.). This makes sure that our tests pass with -# # what we really packaged, not because of something hanging -# # around in the development directory. -# # -# # We can get away with calling setup.py using a directory path -# # like this because we put a preamble in it that will chdir() -# # to the directory in which setup.py exists. -# # -# dfiles = [os.path.join(test_src_zip_dir, x) for x in dst_files] -# scons_lib_dir = os.path.join(unpack_zip_dir, psv, 'src', 'engine') -# ENV = env.Dictionary('ENV').copy() -# ENV['SCONS_LIB_DIR'] = scons_lib_dir -# ENV['USERNAME'] = command_line.developer -# env.Command(dfiles, unpack_zip_files, -# [ -# Delete(os.path.join(unpack_zip_dir, -# psv, -# 'build', -# 'scons', -# 'build')), -# Delete("$TEST_SRC_ZIP_DIR"), -# 'cd "%s" && $PYTHON $PYTHONFLAGS "%s" "%s" VERSION="$VERSION"' % \ -# (os.path.join(unpack_zip_dir, psv), -# os.path.join('src', 'script', 'scons.py'), -# os.path.join('build', 'scons')), -# '$PYTHON $PYTHONFLAGS "%s" install "--prefix=$TEST_SRC_ZIP_DIR" --standalone-lib' % \ -# os.path.join(unpack_zip_dir, -# psv, -# 'build', -# 'scons', -# 'setup.py'), -# ], -# ENV=ENV) -# -# for pf, help_text in packaging_flavors: -# Alias(pf, [ -# os.path.join(command_line.build_dir, 'test-' + pf), -# os.path.join(command_line.build_dir, 'testing/framework'), -# os.path.join(command_line.build_dir, 'runtest.py'), -# ]) @@ -1,6 +1,25 @@ -from setuptools import setup,find_packages +import fnmatch +from setuptools import find_packages, setup +from setuptools.command.build_py import build_py as build_py_orig + + +exclude = ['*Tests'] + + +class build_py(build_py_orig): + + def find_package_modules(self, package, package_dir): + """ + Custom module to find package modules. + It will strip out any modules which match the glob patters in exclude above + """ + modules = super().find_package_modules(package, package_dir) + return [(pkg, mod, file, ) for (pkg, mod, file, ) in modules + if not any(fnmatch.fnmatchcase(mod, pat=pattern) + for pattern in exclude)] setup( - # packages = find_packages("src/engine"), - # package_dir={"":"src/engine"}, + cmdclass={ + 'build_py': build_py, + } )
\ No newline at end of file diff --git a/src/MANIFEST.in b/src/MANIFEST.in deleted file mode 100644 index e69de29..0000000 --- a/src/MANIFEST.in +++ /dev/null diff --git a/src/engine/MANIFEST.in b/src/engine/MANIFEST.in deleted file mode 100644 index 3c2c0c2..0000000 --- a/src/engine/MANIFEST.in +++ /dev/null @@ -1,186 +0,0 @@ -SCons/__init__.py -SCons/__main__.py -SCons/Action.py -SCons/Builder.py -SCons/compat/*.py -SCons/CacheDir.py -SCons/Conftest.py -SCons/cpp.py -SCons/dblite.py -SCons/Debug.py -SCons/Defaults.py -SCons/Environment.py -SCons/Errors.py -SCons/Executor.py -SCons/Job.py -SCons/exitfuncs.py -SCons/Memoize.py -SCons/Node/__init__.py -SCons/Node/Alias.py -SCons/Node/FS.py -SCons/Node/Python.py -SCons/PathList.py -SCons/Platform/__init__.py -SCons/Platform/aix.py -SCons/Platform/cygwin.py -SCons/Platform/darwin.py -SCons/Platform/hpux.py -SCons/Platform/irix.py -SCons/Platform/os2.py -SCons/Platform/mingw.py -SCons/Platform/posix.py -SCons/Platform/sunos.py -SCons/Platform/win32.py -SCons/Platform/virtualenv.py -SCons/Scanner/__init__.py -SCons/Scanner/C.py -SCons/Scanner/D.py -SCons/Scanner/Dir.py -SCons/Scanner/Fortran.py -SCons/Scanner/IDL.py -SCons/Scanner/LaTeX.py -SCons/Scanner/Prog.py -SCons/Scanner/Python.py -SCons/Scanner/RC.py -SCons/Scanner/SWIG.py -SCons/SConf.py -SCons/SConsign.py -SCons/Script/__init__.py -SCons/Script/Interactive.py -SCons/Script/Main.py -SCons/Script/SConscript.py -SCons/Script/SConsOptions.py -SCons/Subst.py -SCons/Taskmaster.py -SCons/Tool/__init__.py -SCons/Tool/386asm.py -SCons/Tool/aixc++.py -SCons/Tool/aixcxx.py -SCons/Tool/aixcc.py -SCons/Tool/aixf77.py -SCons/Tool/aixlink.py -SCons/Tool/applelink.py -SCons/Tool/ar.py -SCons/Tool/as.py -SCons/Tool/bcc32.py -SCons/Tool/c++.py -SCons/Tool/cxx.py -SCons/Tool/cc.py -SCons/Tool/cyglink.py -SCons/Tool/clangCommon/__init__.py -SCons/Tool/clang.py -SCons/Tool/clangxx.py -SCons/Tool/cvf.py -SCons/Tool/DCommon.py -SCons/Tool/default.py -SCons/Tool/dmd.py -SCons/Tool/docbook/__init__.py -SCons/Tool/dvi.py -SCons/Tool/dvipdf.py -SCons/Tool/dvips.py -SCons/Tool/f03.py -SCons/Tool/f08.py -SCons/Tool/f77.py -SCons/Tool/f90.py -SCons/Tool/f95.py -SCons/Tool/filesystem.py -SCons/Tool/fortran.py -SCons/Tool/FortranCommon.py -SCons/Tool/g++.py -SCons/Tool/gxx.py -SCons/Tool/g77.py -SCons/Tool/gas.py -SCons/Tool/gcc.py -SCons/Tool/gdc.py -SCons/Tool/gfortran.py -SCons/Tool/gnulink.py -SCons/Tool/gs.py -SCons/Tool/hpc++.py -SCons/Tool/hpcxx.py -SCons/Tool/hpcc.py -SCons/Tool/hplink.py -SCons/Tool/icc.py -SCons/Tool/icl.py -SCons/Tool/ifl.py -SCons/Tool/ifort.py -SCons/Tool/ilink.py -SCons/Tool/ilink32.py -SCons/Tool/install.py -SCons/Tool/intelc.py -SCons/Tool/ipkg.py -SCons/Tool/jar.py -SCons/Tool/JavaCommon.py -SCons/Tool/javac.py -SCons/Tool/javah.py -SCons/Tool/latex.py -SCons/Tool/ldc.py -SCons/Tool/lex.py -SCons/Tool/link.py -SCons/Tool/linkloc.py -SCons/Tool/MSCommon/__init__.py -SCons/Tool/MSCommon/arch.py -SCons/Tool/MSCommon/common.py -SCons/Tool/MSCommon/netframework.py -SCons/Tool/MSCommon/sdk.py -SCons/Tool/MSCommon/vs.py -SCons/Tool/MSCommon/vc.py -SCons/Tool/m4.py -SCons/Tool/masm.py -SCons/Tool/midl.py -SCons/Tool/mingw.py -SCons/Tool/mslib.py -SCons/Tool/mslink.py -SCons/Tool/mssdk.py -SCons/Tool/msvc.py -SCons/Tool/msvs.py -SCons/Tool/mwcc.py -SCons/Tool/mwld.py -SCons/Tool/nasm.py -SCons/Tool/packaging/*.py -SCons/Tool/pdf.py -SCons/Tool/pdflatex.py -SCons/Tool/pdftex.py -SCons/Tool/PharLapCommon.py -SCons/Tool/python.py -SCons/Tool/qt.py -SCons/Tool/rmic.py -SCons/Tool/rpcgen.py -SCons/Tool/rpm.py -SCons/Tool/rpmutils.py -SCons/Tool/sgiar.py -SCons/Tool/sgic++.py -SCons/Tool/sgicxx.py -SCons/Tool/sgicc.py -SCons/Tool/sgilink.py -SCons/Tool/sunar.py -SCons/Tool/sunc++.py -SCons/Tool/suncxx.py -SCons/Tool/suncc.py -SCons/Tool/sunf77.py -SCons/Tool/sunf90.py -SCons/Tool/sunf95.py -SCons/Tool/sunlink.py -SCons/Tool/swig.py -SCons/Tool/tar.py -SCons/Tool/tex.py -SCons/Tool/textfile.py -SCons/Tool/tlib.py -SCons/Tool/wix.py -SCons/Tool/yacc.py -SCons/Tool/zip.py -SCons/Util.py -SCons/Variables/__init__.py -SCons/Variables/BoolVariable.py -SCons/Variables/EnumVariable.py -SCons/Variables/ListVariable.py -SCons/Variables/PackageVariable.py -SCons/Variables/PathVariable.py -SCons/Warnings.py -SCons/Tool/GettextCommon.py -SCons/Tool/gettext_tool.py -SCons/Tool/msgfmt.py -SCons/Tool/msginit.py -SCons/Tool/msgmerge.py -SCons/Tool/xgettext.py -#SCons/Tool/docbook/docbook-xsl-1.76.1/** -#SCons/Tool/docbook/utils/** diff --git a/src/setup.cfg b/src/setup.cfg deleted file mode 100644 index bda7571..0000000 --- a/src/setup.cfg +++ /dev/null @@ -1,8 +0,0 @@ -[bdist_rpm] -group = Development/Tools - -[bdist_wininst] -title = SCons - a software construction tool - -[bdist_wheel] -universal=1 diff --git a/src/setup.py b/src/setup.py deleted file mode 100755 index bea888b..0000000 --- a/src/setup.py +++ /dev/null @@ -1,522 +0,0 @@ -# -# __COPYRIGHT__ -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY -# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE -# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -import distutils.command.build_scripts -import distutils.command.install_scripts -import distutils.command.install_lib -import distutils.command.install_data -import distutils.command.install -import distutils.core -import distutils -import setuptools -""" -NOTE: Installed SCons is not importable like usual Python packages. It is - executed explicitly with command line scripts. This allows multiple - SCons versions to coexist within single Python installation, which - is critical for enterprise build cases. Explicit invokation is - necessary to avoid confusion over which version of SCons is active. - - By default SCons is installed into versioned directory, e.g. - site-packages/scons-2.1.0.alpha.20101125 and much of the stuff - below is dedicated to make it happen on various platforms. -""" - - -__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" - -import os -import stat -import sys - -Version = "__VERSION__" - -man_pages = [ - 'scons.1', - 'sconsign.1', - 'scons-time.1', -] - -# change to setup.py directory if it was executed from other dir -(head, tail) = os.path.split(sys.argv[0]) -if head: - os.chdir(head) - sys.argv[0] = tail - -# flag if setup.py is run on win32 or _for_ win32 platform, -# (when building windows installer on linux, for example) -is_win32 = 0 -if not sys.platform == 'win32': - try: - if sys.argv[1] == 'bdist_wininst': - is_win32 = 1 - except IndexError: - pass -else: - is_win32 = 1 - - -_install = distutils.command.install.install -_install_data = distutils.command.install_data.install_data -_install_lib = distutils.command.install_lib.install_lib -_install_scripts = distutils.command.install_scripts.install_scripts -_build_scripts = distutils.command.build_scripts.build_scripts - - -class _options(object): - pass - - -Options = _options() - -Installed = [] - - -def set_explicitly(name, args): - """ - Return if the installation directory was set explicitly by the - user on the command line. This is complicated by the fact that - "install --install-lib=/foo" gets turned into "install_lib - --install-dir=/foo" internally. - """ - if args[0] == "install_" + name: - s = "--install-dir=" - else: - # The command is something else (usually "install") - s = "--install-%s=" % name - set = 0 - length = len(s) - for a in args[1:]: - if a[:length] == s: - set = 1 - break - return set - - -class install(_install): - user_options = _install.user_options + [ - ('no-scons-script', None, - "don't install 'scons', only install 'scons-%s'" % Version), - ('no-version-script', None, - "don't install 'scons-%s', only install 'scons'" % Version), - ('install-bat', None, - "install 'scons.bat' script"), - ('no-install-bat', None, - "do not install 'scons.bat' script"), - ('install-man', None, - "install SCons man pages"), - ('no-install-man', None, - "do not install SCons man pages"), - ('standard-lib', None, - "install SCons library in standard Python location"), - ('standalone-lib', None, - "install SCons library in separate standalone directory"), - ('version-lib', None, - "install SCons library in version-numbered directory"), - ] - boolean_options = _install.boolean_options + [ - 'no-scons-script', - 'no-version-script', - 'install-bat', - 'no-install-bat', - 'install-man', - 'no-install-man', - 'standard-lib', - 'standalone-lib', - 'version-lib' - ] - - if hasattr(os, 'link'): - user_options.append( - ('hardlink-scons', None, - "hard link 'scons' to the version-numbered script, don't make a separate 'scons' copy"), - ) - boolean_options.append('hardlink-script') - - if hasattr(os, 'symlink'): - user_options.append( - ('symlink-scons', None, - "make 'scons' a symbolic link to the version-numbered script, don't make a separate 'scons' copy"), - ) - boolean_options.append('symlink-script') - - def initialize_options(self): - _install.initialize_options(self) - self.no_scons_script = 0 - self.no_version_script = 0 - self.install_bat = 0 - self.no_install_bat = False # not is_win32 - self.install_man = 0 - self.standard_lib = 0 - self.standalone_lib = 0 - self.version_lib = 0 - self.hardlink_scons = 0 - self.symlink_scons = 0 - # Don't warn about having to put the library directory in the - # search path. - self.warn_dir = 0 - - def finalize_options(self): - _install.finalize_options(self) - if self.install_bat: - Options.install_bat = 1 - else: - Options.install_bat = not self.no_install_bat - if self.install_man: - Options.install_man = 1 - else: - Options.install_man = not self.no_install_man - Options.standard_lib = self.standard_lib - Options.standalone_lib = self.standalone_lib - Options.version_lib = self.version_lib - Options.install_scons_script = not self.no_scons_script - Options.install_version_script = not self.no_version_script - Options.hardlink_scons = self.hardlink_scons - Options.symlink_scons = self.symlink_scons - - -def get_scons_prefix(libdir, is_win32): - """ - Return the right prefix for SCons library installation. Find - this by starting with the library installation directory - (.../site-packages, most likely) and crawling back up until we reach - a directory name beginning with "python" (or "Python"). - """ - drive, head = os.path.splitdrive(libdir) - while head: - if head == os.sep: - break - head, tail = os.path.split(head) - if tail.lower()[:6] == "python": - # Found the Python library directory... - if is_win32: - # ...on Win32 systems, "scons" goes in the directory: - # C:\PythonXX => C:\PythonXX\scons - return os.path.join(drive + head, tail) - else: - # ...on other systems, "scons" goes above the directory: - # /usr/lib/pythonX.X => /usr/lib/scons - return os.path.join(drive + head) - return libdir - - -def force_to_usr_local(self): - """ - A hack to decide if we need to "force" the installation directories - to be under /usr/local. This is because Mac Os X Tiger and - Leopard, by default, put the libraries and scripts in their own - directories under /Library or /System/Library. - """ - return (sys.platform[:6] == 'darwin' and - (self.install_dir[:9] == '/Library/' or - self.install_dir[:16] == '/System/Library/')) - - -class install_lib(_install_lib): - def finalize_options(self): - _install_lib.finalize_options(self) - if force_to_usr_local(self): - self.install_dir = '/usr/local/lib' - args = self.distribution.script_args - if not set_explicitly("lib", args): - # They didn't explicitly specify the installation - # directory for libraries... - is_win32 = sys.platform == "win32" or args[0] == 'bdist_wininst' - prefix = get_scons_prefix(self.install_dir, is_win32) - if Options.standalone_lib: - # ...but they asked for a standalone directory. - self.install_dir = os.path.join(prefix, "scons") - elif Options.version_lib: - # ...they asked for a version-specific directory, - self.install_dir = os.path.join(prefix, "scons-%s" % Version) - elif not Options.standard_lib: - # default. - self.install_dir = os.path.join(prefix, "scons") - - msg = "Installed SCons library modules into %s" % self.install_dir - Installed.append(msg) - - -class install_scripts(_install_scripts): - def finalize_options(self): - _install_scripts.finalize_options(self) - if force_to_usr_local(self): - self.install_dir = '/usr/local/bin' - self.build_dir = os.path.join('build', 'scripts') - msg = "Installed SCons scripts into %s" % self.install_dir - Installed.append(msg) - - def do_nothing(self, *args, **kw): - pass - - def hardlink_scons(self, src, dst, ver): - try: - os.unlink(dst) - except OSError: - pass - os.link(ver, dst) - - def symlink_scons(self, src, dst, ver): - try: - os.unlink(dst) - except OSError: - pass - os.symlink(os.path.split(ver)[1], dst) - - def copy_scons(self, src, dst, *args): - try: - os.unlink(dst) - except OSError: - pass - self.copy_file(src, dst) - self.outfiles.append(dst) - - def run(self): - # --- distutils copy/paste --- - if not self.skip_build: - self.run_command('build_scripts') - # --- /distutils copy/paste --- - - # Custom SCons installation stuff. - if Options.hardlink_scons: - create_basename_script = self.hardlink_scons - elif Options.symlink_scons: - create_basename_script = self.symlink_scons - elif Options.install_scons_script: - create_basename_script = self.copy_scons - else: - create_basename_script = self.do_nothing - - if Options.install_version_script: - create_version_script = self.copy_scons - else: - create_version_script = self.do_nothing - - inputs = self.get_inputs() - bat_scripts = [x for x in inputs if x[-4:] == '.bat'] - non_bat_scripts = [x for x in inputs if x[-4:] != '.bat'] - - self.outfiles = [] - self.mkpath(self.install_dir) - - for src in non_bat_scripts: - base = os.path.basename(src) - scons = os.path.join(self.install_dir, base) - scons_ver = scons + '-' + Version - if is_win32: - scons = scons + '.py' - scons_ver = scons_ver + '.py' - create_version_script(src, scons_ver) - create_basename_script(src, scons, scons_ver) - - if Options.install_bat: - if is_win32: - bat_install_dir = get_scons_prefix(self.install_dir, is_win32) - else: - bat_install_dir = self.install_dir - for src in bat_scripts: - scons_bat = os.path.join(bat_install_dir, 'scons.bat') - scons_version_bat = os.path.join(bat_install_dir, - 'scons-' + Version + '.bat') - self.copy_scons(src, scons_bat) - self.copy_scons(src, scons_version_bat) - - # --- distutils copy/paste --- - if hasattr(os, 'chmod') and hasattr(os, 'stat'): - # Set the executable bits (owner, group, and world) on - # all the scripts we just installed. - for file in self.get_outputs(): - if self.dry_run: - # log.info("changing mode of %s", file) - pass - else: - # Use symbolic versions of permissions so this script doesn't fail to parse under python3.x - exec_and_read_permission = stat.S_IXOTH | stat.S_IXUSR | stat.S_IXGRP | stat.S_IROTH | stat.S_IRUSR | stat.S_IRGRP - mode_mask = 4095 # Octal 07777 used because python3 has different octal syntax than python 2 - mode = ((os.stat(file)[stat.ST_MODE]) | - exec_and_read_permission) & mode_mask - # log.info("changing mode of %s to %o", file, mode) - os.chmod(file, mode) - # --- /distutils copy/paste --- - - -class build_scripts(_build_scripts): - def finalize_options(self): - _build_scripts.finalize_options(self) - self.build_dir = os.path.join('build', 'scripts') - - -class install_data(_install_data): - def initialize_options(self): - _install_data.initialize_options(self) - - def finalize_options(self): - _install_data.finalize_options(self) - if force_to_usr_local(self): - self.install_dir = '/usr/local' - if Options.install_man: - if is_win32: - dir = 'Doc' - else: - dir = os.path.join('man', 'man1') - self.data_files = [(dir, man_pages)] - man_dir = os.path.join(self.install_dir, dir) - msg = "Installed SCons man pages into %s" % man_dir - Installed.append(msg) - else: - self.data_files = [] - - -description = "Open Source next-generation build tool." - -long_description = """Open Source next-generation build tool. -Improved, cross-platform substitute for the classic Make -utility. In short, SCons is an easier, more reliable -and faster way to build software.""" - -scripts = [ - 'script/scons', - 'script/sconsign', - 'script/scons-time', - 'script/scons-configure-cache', - - # We include scons.bat in the list of scripts, even on UNIX systems, - # because we provide an option to allow it be installed explicitly, - # for example if you're installing from UNIX on a share that's - # accessible to Windows and you want the scons.bat. - 'script/scons.bat', -] - -arguments = { - 'name': "scons", - 'version': Version, - 'description': description, - 'long_description': long_description, - 'author': 'William Deegan', - 'author_email': 'bill@baddogconsulting.com', - 'url': "http://www.scons.org/", - 'packages': ["SCons", - "SCons.compat", - "SCons.Node", - "SCons.Platform", - "SCons.Scanner", - "SCons.Script", - "SCons.Tool", - "SCons.Tool.clangCommon", - "SCons.Tool.docbook", - 'SCons.Tool.clangCommon', - "SCons.Tool.MSCommon", - "SCons.Tool.packaging", - "SCons.Variables", - ], - 'package_dir': {'': 'engine', - 'SCons.Tool.docbook': 'engine/SCons/Tool/docbook'}, - 'package_data': {'SCons.Tool.docbook': ['docbook-xsl-1.76.1/*', - 'docbook-xsl-1.76.1/common/*', - 'docbook-xsl-1.76.1/docsrc/*', - 'docbook-xsl-1.76.1/eclipse/*', - 'docbook-xsl-1.76.1/epub/*', - 'docbook-xsl-1.76.1/epub/bin/*', - 'docbook-xsl-1.76.1/epub/bin/lib/*', - 'docbook-xsl-1.76.1/epub/bin/xslt/*', - 'docbook-xsl-1.76.1/extensions/*', - 'docbook-xsl-1.76.1/fo/*', - 'docbook-xsl-1.76.1/highlighting/*', - 'docbook-xsl-1.76.1/html/*', - 'docbook-xsl-1.76.1/htmlhelp/*', - 'docbook-xsl-1.76.1/images/*', - 'docbook-xsl-1.76.1/images/callouts/*', - 'docbook-xsl-1.76.1/images/colorsvg/*', - 'docbook-xsl-1.76.1/javahelp/*', - 'docbook-xsl-1.76.1/lib/*', - 'docbook-xsl-1.76.1/manpages/*', - 'docbook-xsl-1.76.1/params/*', - 'docbook-xsl-1.76.1/profiling/*', - 'docbook-xsl-1.76.1/roundtrip/*', - 'docbook-xsl-1.76.1/slides/browser/*', - 'docbook-xsl-1.76.1/slides/fo/*', - 'docbook-xsl-1.76.1/slides/graphics/*', - 'docbook-xsl-1.76.1/slides/graphics/active/*', - 'docbook-xsl-1.76.1/slides/graphics/inactive/*', - 'docbook-xsl-1.76.1/slides/graphics/toc/*', - 'docbook-xsl-1.76.1/slides/html/*', - 'docbook-xsl-1.76.1/slides/htmlhelp/*', - 'docbook-xsl-1.76.1/slides/keynote/*', - 'docbook-xsl-1.76.1/slides/keynote/xsltsl/*', - 'docbook-xsl-1.76.1/slides/svg/*', - 'docbook-xsl-1.76.1/slides/xhtml/*', - 'docbook-xsl-1.76.1/template/*', - 'docbook-xsl-1.76.1/tests/*', - 'docbook-xsl-1.76.1/tools/bin/*', - 'docbook-xsl-1.76.1/tools/make/*', - 'docbook-xsl-1.76.1/webhelp/*', - 'docbook-xsl-1.76.1/webhelp/docs/*', - 'docbook-xsl-1.76.1/webhelp/docs/common/*', - 'docbook-xsl-1.76.1/webhelp/docs/common/css/*', - 'docbook-xsl-1.76.1/webhelp/docs/common/images/*', - 'docbook-xsl-1.76.1/webhelp/docs/common/jquery/*', - 'docbook-xsl-1.76.1/webhelp/docs/common/jquery/theme-redmond/*', - 'docbook-xsl-1.76.1/webhelp/docs/common/jquery/theme-redmond/images/*', - 'docbook-xsl-1.76.1/webhelp/docs/common/jquery/treeview/*', - 'docbook-xsl-1.76.1/webhelp/docs/common/jquery/treeview/images/*', - 'docbook-xsl-1.76.1/webhelp/docs/content/*', - 'docbook-xsl-1.76.1/webhelp/docs/content/search/*', - 'docbook-xsl-1.76.1/webhelp/docs/content/search/stemmers/*', - 'docbook-xsl-1.76.1/webhelp/docsrc/*', - 'docbook-xsl-1.76.1/webhelp/template/*', - 'docbook-xsl-1.76.1/webhelp/template/common/*', - 'docbook-xsl-1.76.1/webhelp/template/common/css/*', - 'docbook-xsl-1.76.1/webhelp/template/common/images/*', - 'docbook-xsl-1.76.1/webhelp/template/common/jquery/*', - 'docbook-xsl-1.76.1/webhelp/template/common/jquery/theme-redmond/*', - 'docbook-xsl-1.76.1/webhelp/template/common/jquery/theme-redmond/images/*', - 'docbook-xsl-1.76.1/webhelp/template/common/jquery/treeview/*', - 'docbook-xsl-1.76.1/webhelp/template/common/jquery/treeview/images/*', - 'docbook-xsl-1.76.1/webhelp/template/content/search/*', - 'docbook-xsl-1.76.1/webhelp/template/content/search/stemmers/*', - 'docbook-xsl-1.76.1/webhelp/xsl/*', - 'docbook-xsl-1.76.1/website/*', - 'docbook-xsl-1.76.1/xhtml/*', - 'docbook-xsl-1.76.1/xhtml-1_1/*', - 'utils/*']}, - 'data_files': [('man/man1', man_pages)], - 'scripts': scripts, - 'cmdclass': {'install': install, - 'install_lib': install_lib, - 'install_data': install_data, - 'install_scripts': install_scripts, - 'build_scripts': build_scripts}, - 'install_requires' : { - "pywin32;platform_system=='Windows'" - } -} - -distutils.core.setup(**arguments) - -if Installed: - for i in Installed: - print(i) - -# Local Variables: -# tab-width:4 -# indent-tabs-mode:nil -# End: -# vim: set expandtab tabstop=4 shiftwidth=4: |