Re: [Distutils] How to install examples files?

2018-04-11 Thread Thomas Kluyver
If I recall correctly, 'pip install --target' works by installing into a temporary directory, then copying only the library part to the target directory. So it will throw away any docs/examples/scripts that would be installed outside the importable package. On Tue, Apr 10, 2018, at 10:08 PM,

Re: [Distutils] How to install examples files?

2018-04-10 Thread Giampaolo Rodola'
That’s likely because dndexample1.py is not listed in MANIFEST.in file. On Mon, 9 Apr 2018 at 10:10, Michael Schwager wrote: > Hello, > I am trying to install a module with a package and also an examples > directory. How do I get my examples installed on users' machines into

Re: [Distutils] How to install examples files?

2018-04-10 Thread Michael Schwager
It looks like the following setup.py will do what I want, but it won't install the examples when I use --target: from setuptools import setup, find_packages from codecs import open from os import path with open(path.join('.', 'README.md'), encoding='utf-8') as f: long_description = f.read()