title: Installing python setup.py into an alternative path doesn't find installed package
body: <p>I have a test setup file, which I made for a simple "hello world" script. I have a package named <code>mytest</code> which has a function <code>hello</code>. Now, I have a very simple <code>setup.py</code>. Everything works fine, if I just run <code>python setup.py install</code>. But if I want to install lib into home folder (<code>python setup.py install --home=/home/blah</code>), the package is not available anymore (running <code>import mytest</code> in python gives me <code>ImportError: No module named mytest</code>).</p>
  
  <p>Should I add pth-file manually into <code>site-packages</code> folder? I tried it (with contents <code>/home/blah/lib/python</code>, where my package is put) and importing <code>mytest</code> worked fine. Shouldn't it be done automatically? Or have I missed something?</p>
  
  <p>EDIT:</p>
  
  <p>output of install:</p>
  
  <pre>
  ago@dellbert:~/py/mytest-0.1$ python setup.py install --home=/home/ago/py/
  running install
  running build
  running build_py
  copying src/mytest/mytest.py -> build/lib.linux-x86_64-2.6/mytest
  running build_scripts
  copying and adjusting src/main.py -> build/scripts-2.6
  running install_lib
  copying build/lib.linux-x86_64-2.6/mytest/mytest.py -> /home/ago/py//lib/python/mytest
  byte-compiling /home/ago/py//lib/python/mytest/mytest.py to mytest.pyc
  running install_scripts
  copying build/scripts-2.6/main.py -> /home/ago/py//bin
  changing mode of /home/ago/py//bin/main.py to 755
  running install_egg_info
  Removing /home/ago/py//lib/python/mytest-0.1.egg-info
  Writing /home/ago/py//lib/python/mytest-0.1.egg-info
  
  </pre>
  
  <p>and setup.py:</p>
  
  <pre>
  from distutils.core import setup
  
  setup(name='mytest',
        description='test',
        author='Ago',
        author_email='email',
        version='0.1',
        package_dir={'mytest': 'src/mytest'},
        packages=['mytest'],
        scripts=['src/main.py']
        )
  </pre>
  
  <p>Folder structure:</p>
  
  <pre>
  -src:
     -mytest:
         __init__.py
         mytest.py
      main.py
  setup.py
  </pre>
  
  <p><code>main.py</code> is just an executable which imports mytest and calls function to print hello world. But I have tried to just run <code>import mytest</code> in python to see, whether lib is installed.</p>