dmarx / not-a-package-manager

utilities to facilitate working with codebases that don't ascribe to normal package management paradigms, e.g. ML research code that can be cloned but not installed.
MIT License
12 stars 0 forks source link

option to specify 'working directory' and/or subfolder to add to path #18

Open dmarx opened 2 years ago

dmarx commented 2 years ago

motivating test case:

url = 'https://github.com/princeton-vl/RAFT'
import napm
napm.pseudoinstall_git_repo(url, add_install_dir_to_path=True, package_name='flow_net')
from flow_net.core.raft import RAFT

# ModuleNotFoundError: No module named 'update'