Skip to content

Commit

Permalink
setup: go back to include sdist-only files through MANIFEST
Browse files Browse the repository at this point in the history
 -previous solution was not installing examples,
  but still including them from wheels
 -do this for versioneer.py, CHANGELOG.md and examples
  • Loading branch information
dbkeitel committed Jul 13, 2020
1 parent 80bbcf9 commit a30ae7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 4 additions & 0 deletions MANIFEST.in
@@ -0,0 +1,4 @@
include versioneer.py
include pyfstat/_version.py
include CHANGELOG.md
recursive-include examples/ *.py
7 changes: 0 additions & 7 deletions setup.py
Expand Up @@ -3,7 +3,6 @@
from setuptools import setup, find_packages
from os import path
import sys
from glob import glob
import versioneer

# check python version
Expand All @@ -23,9 +22,6 @@
with open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()

# get all example scripts for sdist
examples = glob("examples/*/*.py")

setup(
name="PyFstat",
version=versioneer.get_version(),
Expand All @@ -44,10 +40,7 @@
"pyfstat": [
"pyCUDAkernels/cudaTransientFstatExpWindow.cu",
"pyCUDAkernels/cudaTransientFstatRectWindow.cu",
"../versioneer.py",
"../CHANGELOG.md",
]
+ ["../" + f for f in examples], # need relative path from module sub-dir here
},
platforms="POSIX",
classifiers=[
Expand Down

0 comments on commit a30ae7d

Please sign in to comment.