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
a1cf44de
Commit
a1cf44de
authored
Oct 10, 2006
by
Ronald Oussoren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Macosx: fix permission problem in generated installer
parent
463a42b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Mac/BuildScript/build-installer.py
Mac/BuildScript/build-installer.py
+7
-1
No files found.
Mac/BuildScript/build-installer.py
View file @
a1cf44de
...
...
@@ -10,6 +10,7 @@ bootstrap issues (/usr/bin/python is Python 2.3 on OSX 10.4)
Usage: see USAGE variable in the script.
"""
import
platform
,
os
,
sys
,
getopt
,
textwrap
,
shutil
,
urllib2
,
stat
,
time
,
pwd
import
grp
INCLUDE_TIMESTAMP
=
1
VERBOSE
=
1
...
...
@@ -657,9 +658,13 @@ def buildPython():
print
"Fix file modes"
frmDir
=
os
.
path
.
join
(
rootDir
,
'Library'
,
'Frameworks'
,
'Python.framework'
)
gid
=
grp
.
getgrnam
(
'admin'
).
gr_gid
for
dirpath
,
dirnames
,
filenames
in
os
.
walk
(
frmDir
):
for
dn
in
dirnames
:
os
.
chmod
(
os
.
path
.
join
(
dirpath
,
dn
),
0775
)
os
.
chown
(
os
.
path
.
join
(
dirpath
,
dn
),
-
1
,
gid
)
for
fn
in
filenames
:
if
os
.
path
.
islink
(
fn
):
...
...
@@ -668,7 +673,8 @@ def buildPython():
# "chmod g+w $fn"
p
=
os
.
path
.
join
(
dirpath
,
fn
)
st
=
os
.
stat
(
p
)
os
.
chmod
(
p
,
stat
.
S_IMODE
(
st
.
st_mode
)
|
stat
.
S_IXGRP
)
os
.
chmod
(
p
,
stat
.
S_IMODE
(
st
.
st_mode
)
|
stat
.
S_IWGRP
)
os
.
chown
(
p
,
-
1
,
gid
)
# We added some directories to the search path during the configure
# phase. Remove those because those directories won't be there on
...
...
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