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
12cb99b3
Commit
12cb99b3
authored
Jul 22, 2003
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Various tweaks to make the packages work better. Still not 100%, though.
parent
f7538163
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
Mac/scripts/buildpkg.py
Mac/scripts/buildpkg.py
+18
-4
No files found.
Mac/scripts/buildpkg.py
View file @
12cb99b3
...
@@ -60,7 +60,6 @@ Title
...
@@ -60,7 +60,6 @@ Title
Version
Version
Description
Description
DefaultLocation
DefaultLocation
Diskname
DeleteWarning
DeleteWarning
NeedsAuthorization
NeedsAuthorization
DisableStop
DisableStop
...
@@ -71,6 +70,10 @@ Required
...
@@ -71,6 +70,10 @@ Required
InstallOnly
InstallOnly
RequiresReboot
RequiresReboot
RootVolumeOnly
RootVolumeOnly
LongFilenames
LibrarySubdirectory
AllowBackRev
OverwritePermissions
InstallFat
\
InstallFat
\
"""
"""
...
@@ -138,7 +141,6 @@ class PackageMaker:
...
@@ -138,7 +141,6 @@ class PackageMaker:
'Version'
:
None
,
'Version'
:
None
,
'Description'
:
''
,
'Description'
:
''
,
'DefaultLocation'
:
'/'
,
'DefaultLocation'
:
'/'
,
'Diskname'
:
'(null)'
,
'DeleteWarning'
:
''
,
'DeleteWarning'
:
''
,
'NeedsAuthorization'
:
'NO'
,
'NeedsAuthorization'
:
'NO'
,
'DisableStop'
:
'NO'
,
'DisableStop'
:
'NO'
,
...
@@ -149,7 +151,12 @@ class PackageMaker:
...
@@ -149,7 +151,12 @@ class PackageMaker:
'InstallOnly'
:
'NO'
,
'InstallOnly'
:
'NO'
,
'RequiresReboot'
:
'NO'
,
'RequiresReboot'
:
'NO'
,
'RootVolumeOnly'
:
'NO'
,
'RootVolumeOnly'
:
'NO'
,
'InstallFat'
:
'NO'
}
'InstallFat'
:
'NO'
,
'LongFilenames'
:
'YES'
,
'LibrarySubdirectory'
:
'Standard'
,
'AllowBackRev'
:
'YES'
,
'OverwritePermissions'
:
'NO'
,
}
def
__init__
(
self
,
title
,
version
,
desc
):
def
__init__
(
self
,
title
,
version
,
desc
):
...
@@ -201,6 +208,7 @@ class PackageMaker:
...
@@ -201,6 +208,7 @@ class PackageMaker:
self
.
_addArchive
()
self
.
_addArchive
()
self
.
_addResources
()
self
.
_addResources
()
self
.
_addSizes
()
self
.
_addSizes
()
self
.
_addLoc
()
def
_makeFolders
(
self
):
def
_makeFolders
(
self
):
...
@@ -223,7 +231,8 @@ class PackageMaker:
...
@@ -223,7 +231,8 @@ class PackageMaker:
info
=
""
info
=
""
for
f
in
string
.
split
(
PKG_INFO_FIELDS
,
"
\
n
"
):
for
f
in
string
.
split
(
PKG_INFO_FIELDS
,
"
\
n
"
):
info
=
info
+
"%s %%(%s)s
\
n
"
%
(
f
,
f
)
if
self
.
packageInfo
.
has_key
(
f
):
info
=
info
+
"%s %%(%s)s
\
n
"
%
(
f
,
f
)
info
=
info
%
self
.
packageInfo
info
=
info
%
self
.
packageInfo
base
=
self
.
packageInfo
[
"Title"
]
+
".info"
base
=
self
.
packageInfo
[
"Title"
]
+
".info"
path
=
join
(
self
.
packageResourceFolder
,
base
)
path
=
join
(
self
.
packageResourceFolder
,
base
)
...
@@ -351,6 +360,11 @@ class PackageMaker:
...
@@ -351,6 +360,11 @@ class PackageMaker:
format
=
"NumFiles %d
\
n
InstalledSize %d
\
n
CompressedSize %d
\
n
"
format
=
"NumFiles %d
\
n
InstalledSize %d
\
n
CompressedSize %d
\
n
"
f
.
write
(
format
%
(
numFiles
,
installedSize
,
zippedSize
))
f
.
write
(
format
%
(
numFiles
,
installedSize
,
zippedSize
))
def
_addLoc
(
self
):
"Write .loc file."
base
=
self
.
packageInfo
[
"Title"
]
+
".loc"
f
=
open
(
join
(
self
.
packageResourceFolder
,
base
),
"w"
)
f
.
write
(
'/'
)
# Shortcut function interface
# Shortcut function interface
...
...
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