Problems with setup.py on POSIX systems

Issue #4483 open
Anonymous created an issue

Commit https://bitbucket.org/tortoisehg/thg/commits/e8655ee7414d introduced new way for generating config file. But on Nix package manager we've found a failing case

Running setup.py like this

python setup.py build install --install-data=<SOMEPATH>

and running setup.py like this

python setup.py build
python setup.py install --install-data=<SOMEPATH>

are the ways to generate different config files. First one respects the --install-data option, the second - doesn't, but this is counterintuitive

The proposal is to move build_config to install command

[Original bug report] https://github.com/NixOS/nixpkgs/issues/13507

Comments (4)

  1. Yuya Nishihara
    • changed status to open

    setup.py is itchy. IIRC, install was too late to generate a Python file that can be processed as a Python module by distutils.

    Can NixOS be happy with another workaround, such as providing standard make install recipe?

  2. Yuya Nishihara

    issue is not urgent for Nix

    Ok, let's revisit this issue later. Thanks.

    move build_config to install command

    Another possible option is to move all data files under tortoisehg tree so that they can be processed as Python package data. The drawback is we have to fix the other packaging scripts for Windows and Mac OS X. Also, new layout won't agree with FHS or Debian policy.

  3. Log in to comment