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
9e051359
Commit
9e051359
authored
Feb 29, 2008
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port build_ssl.py to 2.4; support HOST_PYTHON variable
parent
3fd0c442
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
5 deletions
+18
-5
PCbuild/build_ssl.py
PCbuild/build_ssl.py
+12
-4
PCbuild/readme.txt
PCbuild/readme.txt
+2
-1
PCbuild/x64.vsprops
PCbuild/x64.vsprops
+4
-0
No files found.
PCbuild/build_ssl.py
View file @
9e051359
...
...
@@ -102,8 +102,11 @@ def create_makefile64(makefile, m32):
"""
if
not
os
.
path
.
isfile
(
m32
):
return
with
open
(
m32
)
as
fin
:
with
open
(
makefile
,
'w'
)
as
fout
:
# 2.4 compatibility
fin
=
open
(
m32
)
if
1
:
# with open(m32) as fin:
fout
=
open
(
makefile
,
'w'
)
if
1
:
# with open(makefile, 'w') as fout:
for
line
in
fin
:
line
=
line
.
replace
(
"=tmp32"
,
"=tmp64"
)
line
=
line
.
replace
(
"=out32"
,
"=out64"
)
...
...
@@ -121,9 +124,13 @@ def fix_makefile(makefile):
"""
if
not
os
.
path
.
isfile
(
makefile
):
return
with
open
(
makefile
)
as
fin
:
# 2.4 compatibility
fin
=
open
(
makefile
)
if
1
:
# with open(makefile) as fin:
lines
=
fin
.
readlines
()
with
open
(
makefile
,
'w'
)
as
fout
:
fin
.
close
()
fout
=
open
(
makefile
,
'w'
)
if
1
:
# with open(makefile, 'w') as fout:
for
line
in
lines
:
if
line
.
startswith
(
"PERL="
):
continue
...
...
@@ -139,6 +146,7 @@ def fix_makefile(makefile):
line
=
line
+
noalgo
line
=
line
+
'
\
n
'
fout
.
write
(
line
)
fout
.
close
()
def
run_configure
(
configure
,
do_script
):
print
(
"perl Configure "
+
configure
)
...
...
PCbuild/readme.txt
View file @
9e051359
...
...
@@ -303,7 +303,8 @@ Building for AMD64
------------------
The build process for AMD64 / x64 is very similar to standard builds. You just
have to set x64 as platform.
have to set x64 as platform. In addition, the HOST_PYTHON environment variable
must point to a Python interpreter (at least 2.4), to support cross-compilation.
Building Python Using the free MS Toolkit Compiler
--------------------------------------------------
...
...
PCbuild/x64.vsprops
View file @
9e051359
...
...
@@ -15,4 +15,8 @@
Name=
"VCLinkerTool"
TargetMachine=
"17"
/>
<UserMacro
Name=
"PythonExe"
Value=
"$(HOST_PYTHON)"
/>
</VisualStudioPropertySheet>
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