Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request - pass directory for tmp dis creation #52

Open
miAndreev opened this issue Aug 3, 2022 · 2 comments
Open

Feature request - pass directory for tmp dis creation #52

miAndreev opened this issue Aug 3, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@miAndreev
Copy link

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
Copy link
Owner

niess commented Aug 24, 2022

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 ?

@miAndreev
Copy link
Author

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!

@niess niess added the enhancement New feature or request label Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants