Skip to content

kushaldas/pep582

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Single file PEP582 implementation

This is a single file implementation for PEP 582.

Here is a demo on Windows

Working on Windows

How to use?

curl https://raw.githubusercontent.com/kushaldas/pep582/main/pep582.py -o pep582.py
python3 pep582.py --install

If you are using pypy3 then use the same, you will have to install pip first though.

pypy3 -m ensurepip
pypy3 pep582.py --install

Now, inside of any directory, if you create another directory called __pypackages__, python3/pypy3 will start using it to install any modules via pip and also use those modules (if you are in the same directory).

python3 -m pip install requests

or

pypy3 -m pip install requests

This command will then install the requests module in __pypackages__.

What about executables installed via the modules?

The current implementation only supports running things via python3 -m modulename if you are in the parent directory of the __pypackages__. Same with pypy3 -m modulename.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages