Note that there are some explanatory texts on larger screens.

plurals
  1. POsetuptools troubles -- excluding packages, including data files
    primarykey
    data
    text
    <p>I'm fairly new to setuptools. I've seen a few similar questions and it drives a little bit insane that I've seemed to follow advice I saw but setuptools still does something different than what I want.</p> <p>Here is the structure of my project:</p> <pre><code>. .. package1/ __init__.py abc.py ... tests/ __init__.py test_package1.py LICENSE README.md RELEASE setup.py </code></pre> <p>And here is the contents of my setup.py:</p> <pre><code>#!/usr/bin/env python import os #from distutils.core import setup from setuptools import setup, find_packages setup( name='package1', version='1.1', test_suite="tests", packages=find_packages(exclude=['tests']), include_package_data=True, package_data = { '': ['LICENSE', 'README.md5', 'RELEASE'] }, ) </code></pre> <p>Also, in my manifest file I have:</p> <pre><code>include LICENSE include RELEASE include README.md </code></pre> <p>I build the tar with:</p> <pre><code>python setup.py sdist </code></pre> <p>I want to:</p> <ol> <li>Exclude <code>tests</code> directory from the source distribution;</li> <li>Have LICENSE, README.md, RELEASE files in the site-packages directory, either at the top level, or inside the package1 directory (at this point I will agree to either).</li> </ol> <p>Instead, here's what happens:</p> <ol> <li><code>tests</code> directory remains to be in the created tar archive and gets installed to the site-packages;</li> <li>Files are copied to the archive, but do not get installed to the site-packaged directory of the package.</li> </ol> <p>I am out of ideas, can someone explain to me what I am doing wrong and how to fix it?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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