summaryrefslogtreecommitdiff
path: root/Lib/distutils/core.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2003-01-27 16:30:36 +0000
committerAndrew M. Kuchling <amk@amk.ca>2003-01-27 16:30:36 +0000
commit0a36844e63520774fa6ae7e90c824ce0b3c38f65 (patch)
tree01111db0d5db6753a637a355256382a5f074877c /Lib/distutils/core.py
parent81ff7c89a310efa01eea0a3d6080daa31be4c3a6 (diff)
downloadcpython-0a36844e63520774fa6ae7e90c824ce0b3c38f65.tar.gz
Remove the recently-added get_distutil_options(), and just
have two tuples listing the legal keywords for setup() and Extension()
Diffstat (limited to 'Lib/distutils/core.py')
-rw-r--r--Lib/distutils/core.py21
1 files changed, 13 insertions, 8 deletions
diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py
index 9ab419ef4c..29fbc5cdf9 100644
--- a/Lib/distutils/core.py
+++ b/Lib/distutils/core.py
@@ -42,6 +42,19 @@ def gen_usage (script_name):
_setup_stop_after = None
_setup_distribution = None
+# Legal keyword arguments for the setup() function
+setup_keywords = ('distclass', 'script_name', 'script_args', 'options',
+ 'name', 'version', 'author', 'author_email',
+ 'maintainer', 'maintainer_email', 'url', 'license',
+ 'description', 'long_description', 'keywords',
+ 'platforms', 'classifiers')
+
+# Legal keyword arguments for the Extension constructor
+extension_keywords = ('name', 'sources', 'include_dirs',
+ 'define_macros', 'undef_macros',
+ 'library_dirs', 'libraries', 'runtime_library_dirs',
+ 'extra_objects', 'extra_compile_args', 'extra_link_args',
+ 'export_symbols', 'depends', 'language')
def setup (**attrs):
"""The gateway to the Distutils: do everything your setup script needs
@@ -226,11 +239,3 @@ def run_setup (script_name, script_args=None, stop_after="run"):
# run_setup ()
-def get_distutil_options ():
- """Returns a list of strings recording changes to the Distutils.
-
- setup.py files can then do:
- if 'optional-thing' in get_distutil_options():
- ...
- """
- return []