Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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.

Changelog

0.5.2 (2010-12-02)

  • Documentation fixes.

0.5.1 (2010-12-02)

  • Fix packaging by using setuptools_bzr.

0.5 (2010-12-01)

  • First public release

0.1 (unreleased)

  • Initial version.
Release History

Release History

This version
History Node

0.5.2

History Node

0.5

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
buildout.umask-0.5.2.tar.gz (2.7 kB) Copy SHA256 Checksum SHA256 Source Dec 2, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting