Thank you for your answer!<br><br>Sorry for not being clear. This is the first time I need to send my developed software to other people.<br><br><br>So, let me explain what I want to do. <br>I have the directory structure above, and in addition my MANIFEST.in contains one single row:<br>
<br>recursive-include doc/build/html *<br><br>I have added the "package_dir = {'':'src'}" to my setup.py as you suggested.<br><br>I am still working with my code under "src" and with the documentation under "doc". I'm on a linux computer.<br>
<br>1.<br>I need to send my code to windows users. They have Python installed. They need to run my program<br>from the commandline in windows. I also would like my html documentation to be placed in some reasonable<br>place on their computers.<br>
<br>2. <br>I would like to easily make a system wide installation of my code and documentation on my own linux machine.<br>I need a running version while I continue to develop the software.<br><br>What is the best strategy to do this?<br>
<br>Best regards,<br>Johan<br><br><br><br><div class="gmail_quote">On Thu, Feb 10, 2011 at 6:42 PM, P.J. Eby <span dir="ltr"><<a href="mailto:pje@telecommunity.com">pje@telecommunity.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">At 05:20 PM 2/10/2011 +0100, Johan Ekh wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
my setup.py looks like<br>
<br>
#!/usr/bin/env python<br>
<br>
from setuptools import setup, find_packages<br>
<br>
setup(name='cabletlk',<br>
version='0.1',<br>
description='Cable Toolkit',<br>
author='Johan Ekh',<br></div>
author_email='<mailto:<a href="mailto:johan.ekh@se.abb.com" target="_blank">johan.ekh@se.abb.com</a>><a href="mailto:johan.ekh@se.abb.com" target="_blank">johan.ekh@se.abb.com</a>',<br>
<br>
packages=['mypkg',],<br>
)<br>
</blockquote>
<br>
It looks like you're missing a:<br>
<br>
package_dir = {'':'src'}<br>
<br>
from that.<div class="im"><br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I would like to include the content in "doc/built/html" in my distribution.<br>
<br>
How can I do that?<br>
</blockquote>
<br></div>
If you mean your source distribution, you can do that by putting those files in revision control (w/appropriate plugin), or by adding appropriate directives to a MANIFEST.in file (see the distutils documentation for MANIFEST.in).<br>
<br>
If you mean you want to install the docs as data in a certain path for specific platforms, see the distutils documentation for the "install_data" command.<br>
<br>
If you want to include the docs in an .egg distribution or installation, you'll need to place them either under your .egg-info directory, or else put them inside mypkg/ and use include_package_data=True or the package_data={} directives.<br>
<br>
</blockquote></div><br>