TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Pythonloc, invokes Python with local dir 'pypackages' on path

1 pointsby grassfedcodeover 6 years ago

1 comment

grassfedcodeover 6 years ago
pythonloc is a drop in replacement for python that automatically recognizes a __pypackages__ directory and prefers importing packages installed in this location over user or global site-packages.<p>If you are familiar with node, it is similar to node_modules.<p>This is a pure Python implementation of the proposal laid out in PEP 582. The CPython implementation is available at <a href="https:&#x2F;&#x2F;github.com&#x2F;kushaldas&#x2F;cpython&#x2F;tree&#x2F;pypackages" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kushaldas&#x2F;cpython&#x2F;tree&#x2F;pypackages</a>.