cosypose icon indicating copy to clipboard operation
cosypose copied to clipboard

setup.py install: problem with file paths

Open MedericFourmy opened this issue 2 years ago • 1 comments

For now, installing cosypose using python setup.py install or pip install . (equivalent) has 2 issues:

  • path to local_data folder is assumed to be in the project/package folder (see this line), which is not copied in the installed package (and should not be)
  • cosypose/config_yann.yaml is also assumed to be present in the installed package but it is not for copied

NB: python setup.py develop or pip install -e .` works perfectly fine but is normally used while developing the package itself

MedericFourmy avatar Dec 08 '22 13:12 MedericFourmy

  • For local_data, a hack would be to set a cosypose module attribute before config.py is ever imported and then check if this attribute is present while building the obsolute path variables

MedericFourmy avatar Dec 08 '22 13:12 MedericFourmy