niess/python-appimage

Feature request - pass directory for tmp dis creation

miAndreev opened this issue · 2 comments

I want to place the recipe in the python project that I want to package. If I can give path where to create the tmp dirs I can put relative path in the requirements.txt. The function used for creation of directories tempfile.mkdtemp supports parameter dir which gives root for the tmp directories. I`m not sure how to manage the passing of parameter. Do you think that it is possible?

niess commented

Hello @miAndreev,

sorry I missed your request until now.

My understanding is that you would like to specify the base location of the temporary directory at that point. Is this correct? If so, it should be rather straightforward to add a command line option for this.

Concerning relative paths in the requirements.txt, I am unsure what your intent is. I thought that the requirements should specify a package name. Is it possible to directly specify a wheel file instead? Or maybe, you use the new local+ feature ?

Hi,

no problem!

Yes, at this point. My use case is that I have requirements.txt that requires the current package. So the requirements for the python module are only in setup.cfg. When I have control of the location I can give relative path to the module root and everything will be added automatically. For now I am creating file with the path to the module in the Make file. I can try to make a pr when I have time with the implementation.

Maybe I use some sort of local+. A line can be path to a directory. Maybe pip checks how the line starts. I will see if this solves my case.

Thanks for your time!