Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create prefix directories before calling pip #2842

Merged
merged 1 commit into from Feb 21, 2017

Conversation

davidlt
Copy link
Contributor

@davidlt davidlt commented Feb 21, 2017

create_home_path from lib/python2.7/distutils/command/install.py is
responsible for creating prefix (part of installation) directory. By default
it's created with 0700 permission, instead of default umask 0755. According to
Python documention mode while creating directories can be ignored on some
systems thus one should always use os.chmod to set correct permission afterwards.

If prefix directories are created with 0700 we will get conflicts from RPM
while trying to install pip based packages.

We use mkdir -p %{i} to create prefix directory with correct umask to get 0755
permissions.

Signed-off-by: David Abdurachmanov david.abdurachmanov@gmail.com

`create_home_path` from `lib/python2.7/distutils/command/install.py` is
responsible for creating prefix (part of installation) directory. By default
it's created with 0700 permission, instead of default umask 0755. According to
Python documention mode while creating directories can be ignored on some
systems thus one should always use os.chmod to set correct permission afterwards.

If prefix directories are created with 0700 we will get conflicts from RPM
while trying to install pip based packages.

We use `mkdir -p %{i}` to create prefix directory with correct umask to get 0755
permissions.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
@cmsbuild
Copy link
Contributor

A new Pull Request was created by @davidlt for branch IB/CMSSW_9_0_X/gcc530.

@cmsbuild, @smuzaffar, @iahmad-khan, @davidlange6 can you please review it and eventually sign? Thanks.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.

@smuzaffar smuzaffar merged commit edfb211 into cms-sw:IB/CMSSW_9_0_X/gcc530 Feb 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants