distutils setup - changing the location in site-packages

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • imageguy

    distutils setup - changing the location in site-packages

    I am hoping if someone can set me straight.

    I have created a setup script for a module, however, when running the
    install on my own machine, I would like to place the module in a
    specific site-packages directory/package.


    So if I start with a module in

    ..\dev\mygreatm odule.py

    I want to end up with;

    ..\lib\site-packages\mytool s\mygreatmodule .py.

    I have the setup script working, however, when I run the install, it
    places the module in the root of site-packages.

    The following is the deatils from the script
    setup (
    name = "mymodule",
    version = "0.1",
    description = "My modules special description",
    author = "me",
    author_email = "me@mydomain.co m",
    py_modules = ["exceptionhandl er"]
    )

    This is for development purposes. I would like to have a development
    copy of some "tools", but when ready and tested "publish" them to the
    site-packages where they can be included in "production " code.

    Any guidance/suggestions would be appreciated.
Working...