Skip to content

Commit 5b4e1ea

Browse files
committed
REL: use the distutils sdist command instead of the setuptools one.
This removed some unwanted useless files like an empty setup.cfg
1 parent 452dae7 commit 5b4e1ea

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

MANIFEST.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1+
include MANIFEST.in
12
recursive-include numpydoc/tests *.py
23
include *.txt
4+
include *.rst
5+
6+
# Exclude what we don't want to include
7+
prune */__pycache__
8+
global-exclude *.pyc *~ *.bak *.swp *.pyo

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from __future__ import division, print_function
22

33
import sys
4+
5+
from distutils.command.sdist import sdist
46
import setuptools
57
from distutils.core import setup
68

@@ -27,4 +29,5 @@
2729
requires=["sphinx (>= 1.0.1)"],
2830
package_data={'numpydoc': ['tests/test_*.py']},
2931
test_suite = 'nose.collector',
32+
cmdclass={"sdist": sdist},
3033
)

0 commit comments

Comments
 (0)