Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f52d27e5
Commit
f52d27e5
authored
May 21, 2001
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug #232619: fix misleading warning on installing to lib-dynload
parent
c02bc3e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
setup.py
setup.py
+10
-1
No files found.
setup.py
View file @
f52d27e5
...
...
@@ -12,6 +12,7 @@ from distutils import text_file
from
distutils.errors
import
*
from
distutils.core
import
Extension
,
setup
from
distutils.command.build_ext
import
build_ext
from
distutils.command.install
import
install
# This global variable is used to hold the list of modules to be disabled.
disabled_module_list
=
[]
...
...
@@ -598,10 +599,18 @@ class PyBuildExt(build_ext):
# *** Uncomment these for TOGL extension only:
# -lGL -lGLU -lXext -lXmu \
class
PyBuildInstall
(
install
):
# Suppress the warning about installation into the lib_dynload
# directory, which is not in sys.path when running Python during
# installation:
def
initialize_options
(
self
):
install
.
initialize_options
(
self
)
self
.
warn_dir
=
0
def
main
():
setup
(
name
=
'Python standard library'
,
version
=
'%d.%d'
%
sys
.
version_info
[:
2
],
cmdclass
=
{
'build_ext'
:
PyBuildExt
},
cmdclass
=
{
'build_ext'
:
PyBuildExt
,
'install'
:
PyBuildInstall
},
# The struct module is defined here, because build_ext won't be
# called unless there's at least one extension module defined.
ext_modules
=
[
Extension
(
'struct'
,
[
'structmodule.c'
])],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment