Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kushaldas/pep582
https://github.com/kushaldas/pep582
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/kushaldas/pep582
- Owner: kushaldas
- License: apache-2.0
- Created: 2020-05-15T14:04:32.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-31T12:37:47.000Z (almost 2 years ago)
- Last Synced: 2023-03-11T02:34:10.795Z (over 1 year ago)
- Language: Python
- Size: 31.3 KB
- Stars: 76
- Watchers: 3
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Single file PEP582 implementation
This is a single file implementation for [PEP 582](https://www.python.org/dev/peps/pep-0582/).
Here is a demo on Windows
![Working on Windows](https://kushaldas.in/images/pep582_windows1.gif)
## 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`.