简体   繁体   中英

How to make a zipapp of current directory?

From what I understand python -m zipapp myapp creates a .pyz file of the directory named myapp. How do i create a .pyz of the current folder in which my working directory is set.

I tried python -m zipapp . which doesnt work.

What would be the exact argument for packaging of the working directory?

Same doubt for the following:
If I do pip install -r requirements.txt --target <directory> , how do i mention current working directory in <directory>

Thinking about the same later, I have reached the conclusion that being able to make the zip file of the directory the terminal is set to doesn't make much sense due to which I don't think there's an solution to this question. Hence I believe zipapp can only take place for a given folder in the directory and not the directory the terminal is set in.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM