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
84d18a97
Commit
84d18a97
authored
May 25, 2008
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include all licenses of the packages that we include.
parent
5212da1b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
Tools/msi/msi.py
Tools/msi/msi.py
+22
-1
No files found.
Tools/msi/msi.py
View file @
84d18a97
...
...
@@ -853,6 +853,26 @@ def extract_msvcr71():
return installer.FileVersion("
msvcr71
.
dll
", 0),
\
installer.FileVersion("
msvcr71
.
dll
", 1)
def generate_license():
import shutil, glob
out = open("
LICENSE
.
txt
", "
w
")
shutil.copyfileobj(open(os.path.join(srcdir, "
LICENSE
")), out)
for dir, file in (("
bzip2
","
LICENSE
"),
("
db
", "
LICENSE
"),
("
openssl
", "
LICENSE
"),
("
tcl
", "
license
.
terms
"),
("
tk
", "
license
.
terms
")):
out.write("
\
nThis
copy
of
Python
includes
a
copy
of
%
s
,
which
is
licensed
under
the
following
terms
:
\
n
\
n
" % dir)
dirs = glob.glob(srcdir+"
/
..
/
"+dir+"
-*
")
if not dirs:
raise ValueError, "
Could
not
find
"+srcdir+"
/
..
/
"+dir+"
-*
"
if len(dirs) > 2:
raise ValueError, "
Multiple
copies
of
"+dir
dir = dirs[0]
shutil.copyfileobj(open(os.path.join(dir, file)), out)
out.close()
class PyDirectory(Directory):
"""By default, all components in the Python installer
can run from source."""
...
...
@@ -873,7 +893,8 @@ def add_files(db):
root.add_file("
PCBuild
/
w9xpopen
.
exe
")
root.add_file("
README
.
txt
", src="
README
")
root.add_file("
NEWS
.
txt
", src="
Misc
/
NEWS
")
root.add_file("
LICENSE
.
txt
", src="
LICENSE
")
generate_license()
root.add_file("
LICENSE
.
txt
", src=os.path.abspath("
LICENSE
.
txt
"))
root.start_component("
python
.
exe
", keyfile="
python
.
exe
")
root.add_file("
PCBuild
/
python
.
exe
")
root.start_component("
pythonw
.
exe
", keyfile="
pythonw
.
exe
")
...
...
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