Skip to content

jwilk/distutils644

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
doc
 
 
 
 
t
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Overview

distutils644 monkey-patches Python distutils to normalize metadata in generated archives:

  • ownership (root:root),
  • permissions (0644 or 0755),
  • order of directory entries (sorted),
  • tar format (ustar).

Usage

Add this to setup.py:

try:
    import distutils644
except ImportError:
    pass
else:
    distutils644.install()

Prerequisites

  • Python 2.7 or ≥ 3.2
  • wheel ≥ 0.7 (for wheel support)

About

Python: normalize ownership, permissions, order of directory entries and tar format in distutils-generated archives

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published