[Distutils] Packaging of files, which aren't in the package root folder
Lukas Hetzenecker
LuHe at gmx.at
Thu Dec 17 08:51:04 CET 2009
Hello,
now I have only one problem left:
If i call my setup.py script with the prefix argument (python setup.py install
--prefix /home/lukas/tmp/) I can't get this argument in the script file.
distutils.sysconfig.get_config_var("prefix") returns '/usr' and
get_config_var("datarootdir") returns '/usr/share'. Is there any way to
initialize the variables so that the command line arguments are noticed and
that the function returns '/home/lukas/tmp/share'?
Lukas
> The layout for the release tarball should be like my development layout,
> only the installation layout should be different.
>
> This means: The user downloads a tarball which has the package for his pc
> (in the pc/ directory), a package for his mobile phone (in the mobile/
> directory) and the LICENCE, README files (in the root directory).
> Now he wants to install the pc package. Only now the modules of the pc/
> directory are mixed with the README files and copied to the site-packages
> directory.
>
> So he has the README files in the root directory of his tarball _and_ in
> the package (site-packages/series60_remote) directory when he installed
> the script.
>
> > What you have done will not work as-is because setup.py can be called
> > for doing something else than 'sdist', so you need to run the code
> > only if 'sdist' is called.
>
> Well, this "mixing" should _not_ happen when sdist is called.
More information about the Distutils-SIG
mailing list