From dd3088cf8a0bf8df369a682bc0f82489a910a394 Mon Sep 17 00:00:00 2001 From: Anthony Tuininga Date: Wed, 5 Sep 2007 04:53:12 +0000 Subject: [PATCH] Put the options directly in the setup.py rather than in setup.cfg. --- setup.cfg | 3 --- setup.py | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) delete mode 100644 setup.cfg diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index f0f93fa..0000000 --- a/setup.cfg +++ /dev/null @@ -1,3 +0,0 @@ -[bdist_rpm] -doc_files = LICENSE.txt README.txt HISTORY.txt html test - diff --git a/setup.py b/setup.py index 8f04ae6..ef59e01 100644 --- a/setup.py +++ b/setup.py @@ -33,6 +33,9 @@ if sys.platform in ("win32", "cygwin"): files.append(name) dataFiles.append( ("%s/%s" % (baseName, dir), files) ) +# define the list of files to be included as documentation for bdist_rpm +docFiles = "LICENSE.txt README.txt HISTORY.txt html test" + # try to determine the ORACLE_HOME oracleHome = os.environ.get("ORACLE_HOME") if oracleHome is None: @@ -119,6 +122,7 @@ setup( description = "Python interface to Oracle", license = "See LICENSE.txt", data_files = dataFiles, + options = dict(bdist_rpm = dict(doc_files = docFiles)), long_description = \ "Python interface to Oracle conforming to the Python DB API 2.0 " "specification.\n"