Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5e56285

Browse files
Correcting Setup.py and manifest
1 parent fefbd45 commit 5e56285

3 files changed

Lines changed: 7 additions & 21 deletions

File tree

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ recursive-include tutorials *
2121
include versioneer.py
2222
include lib/matplotlib/_version.py
2323
include tests.py
24+
prune sub-wheels

sub-wheels/matplotlib-baseline-images/MANIFEST.in

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,19 @@
1+
from setuptools import setup, find_packages
12
import os
23
from pathlib import Path
34
import sys
5+
import subprocess
46

5-
6-
rootdir = str(Path(__file__).resolve().parents[2])
7-
sys.path.insert(0, rootdir)
8-
os.chdir(rootdir)
9-
10-
11-
12-
from setuptools import setup, find_packages
13-
import versioneer
14-
15-
16-
__version__ = versioneer.get_version().split('+')[0]
7+
__version__ = subprocess.check_output(
8+
[sys.executable, "setup.py","--version"], cwd="../..",
9+
universal_newlines=True).rstrip("\n")
1710

1811
setup(
1912
name="matplotlib.baseline-images",
2013
version=__version__,
2114
description="Package containing Matplotlib baseline images and Matplotlib toolkit images",
2215
url="https://github.com/matplotlib/sub-wheels/matplotlib-baseline-images/baseline-images",
23-
package_dir={"": "sub-wheels/matplotlib-baseline-images/baseline_images"},
24-
packages=find_packages("sub-wheels/matplotlib-baseline-images/baseline-images"),
16+
packages=find_packages(),
2517
include_package_data=True,
2618
install_requires=["matplotlib=={}".format(__version__)]
27-
2819
)

0 commit comments

Comments
 (0)