Use a custom umask when running buildout.
Project description
Introduction
============
This extension allows better control over the initial permissions of
files created by buildout by allowing the umask used by the buildout
script to be specified in the configuration file.
Because of bug 180705 of zc.buildout, this doesn't work for scripts
installed by buildout.
This doesn't affect the umask of other scripts in the buildout, unless
they set their own the umask of the user running them will be used,
e.g.: ZEO/Zope might still make var/filestore/Datafile.fs world
readable if your umask is 022.
Usage
=====
[buildout]
extensions = buildout.umask
umask = 027
The `umask` parameter can be specified using any of Python conventions
for numeric literals of binary, octal, decimal or hexadecimal
radix. If any of them is used and a `0` is the first digit, octal is
assumed as well.
Questions
=========
The code is quite simple, take a glimpse.
Bugs
====
https://bugs.launchpad.net/buildout.umask
Changelog
=========
0.5 (2010-12-01)
---------------
- First public release
0.1 (unreleased)
-------------------
- Initial version.
============
This extension allows better control over the initial permissions of
files created by buildout by allowing the umask used by the buildout
script to be specified in the configuration file.
Because of bug 180705 of zc.buildout, this doesn't work for scripts
installed by buildout.
This doesn't affect the umask of other scripts in the buildout, unless
they set their own the umask of the user running them will be used,
e.g.: ZEO/Zope might still make var/filestore/Datafile.fs world
readable if your umask is 022.
Usage
=====
[buildout]
extensions = buildout.umask
umask = 027
The `umask` parameter can be specified using any of Python conventions
for numeric literals of binary, octal, decimal or hexadecimal
radix. If any of them is used and a `0` is the first digit, octal is
assumed as well.
Questions
=========
The code is quite simple, take a glimpse.
Bugs
====
https://bugs.launchpad.net/buildout.umask
Changelog
=========
0.5 (2010-12-01)
---------------
- First public release
0.1 (unreleased)
-------------------
- Initial version.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
buildout.umask-0.5.tar.gz
(2.5 kB
view details)
File details
Details for the file buildout.umask-0.5.tar.gz
.
File metadata
- Download URL: buildout.umask-0.5.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b0e9254c7d7da021153bb46197796edfaf7f67b45fdc8f8fdf5ae14d69bb27d |
|
MD5 | 5bde15258cc301e0d8433696bd5ea4f0 |
|
BLAKE2b-256 | a2062f055f95f1da3a4ee15bead0f9e4a1272219ed5aa3a3096b675d75f8a048 |