Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I make setuptools ignore subversion inventory?
    primarykey
    data
    text
    <p>When packaging a Python package with a setup.py that uses the setuptools:</p> <pre><code>from setuptools import setup ... </code></pre> <p>the source distribution created by:</p> <pre><code>python setup.py sdist </code></pre> <p>not only includes, as usual, the files specified in MANIFEST.in, but it also, gratuitously, includes all of the files that Subversion lists as being version controlled beneath the package directory. This is vastly annoying. Not only does it make it difficult to exercise any sort of explicit control over what files get distributed with my package, but it means that when I build my package following an "svn export" instead of an "svn checkout", the contents of my package might be quite different, since without the .svn metadata setuptools will make different choices about what to include.</p> <p>My question: how can I turn off this terrible behavior, so that "setuptools" treats my project the same way whether I'm using Subversion, or version control it's never heard of, or a bare tree created with "svn export" that I've created at the end of my project to make sure it builds cleanly somewhere besides my working directory?</p> <p>The best I have managed so far is an ugly monkey-patch:</p> <pre><code>from setuptools.command import sdist del sdist.finders[:] </code></pre> <p>But this is Python, not the jungle, so of course I want a better solution that involves no monkeys at all. How can I tame setuptools, turn off its magic, and have it behave sensibly by looking at the visible, predictable rules in my MANIFEST.py instead?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload