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
b68195d5
Commit
b68195d5
authored
May 22, 2007
by
Walter Dörwald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The unicode builtin is gone now. Fix setup.py so that
unicodedata and the CJK codecs are built again.
parent
e0eb5b15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
19 deletions
+6
-19
setup.py
setup.py
+6
-19
No files found.
setup.py
View file @
b68195d5
...
...
@@ -317,11 +317,6 @@ class PyBuildExt(build_ext):
add_dir_to_list(self.compiler.include_dirs,
sysconfig.get_config_var("INCLUDEDIR"))
try:
have_unicode = unicode
except NameError:
have_unicode = 0
# lib_dirs and inc_dirs are used to search for files;
# if a file is found in one of those directories, it can
# be assumed that no additional -I,-L directives are needed.
...
...
@@ -418,10 +413,7 @@ class PyBuildExt(build_ext):
exts
.
append
(
Extension
(
'_hotshot'
,
[
'_hotshot.c'
])
)
exts
.
append
(
Extension
(
'_lsprof'
,
[
'_lsprof.c'
,
'rotatingtree.c'
])
)
# static Unicode character database
if
have_unicode
:
exts
.
append
(
Extension
(
'unicodedata'
,
[
'unicodedata.c'
])
)
else
:
missing
.
append
(
'unicodedata'
)
exts
.
append
(
Extension
(
'unicodedata'
,
[
'unicodedata.c'
])
)
# access to ISO C locale support
data
=
open
(
'pyconfig.h'
).
read
()
m
=
re
.
search
(
r"#s*define\
s+WITH_LIBINTL
\s+1\
s*
", data)
...
...
@@ -1082,16 +1074,11 @@ class PyBuildExt(build_ext):
missing.append('_elementtree')
# Hye-Shik Chang's CJKCodecs modules.
if have_unicode:
exts.append(Extension('_multibytecodec',
['cjkcodecs/multibytecodec.c']))
for loc in ('kr', 'jp', 'cn', 'tw', 'hk', 'iso2022'):
exts.append(Extension('_codecs_%s' % loc,
['cjkcodecs/_codecs_%s.c' % loc]))
else:
missing.append('_multibytecodec')
for loc in ('kr', 'jp', 'cn', 'tw', 'hk', 'iso2022'):
missing.append('_codecs_%s' % loc)
exts.append(Extension('_multibytecodec',
['cjkcodecs/multibytecodec.c']))
for loc in ('kr', 'jp', 'cn', 'tw', 'hk', 'iso2022'):
exts.append(Extension('_codecs_%s' % loc,
['cjkcodecs/_codecs_%s.c' % loc]))
# Dynamic loading module
if sys.maxint == 0x7fffffff:
...
...
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