flat-waitress-2758
09/26/2021, 6:10 PMproject
├── cli-bin
│ ├── main.py
│ ├── Pipfile
└── somelib
├── lib.py
└── setup.py
Is this possible with just setup.py and pipenv? Or do I need something like pants? I've tried a Pipfile that looks like this
[[source]]
url = "<https://pypi.org/simple>"
name = "cli-bin"
[packages]
somelib = {editable = true, path = "./../somelib"}
but it can't resolve somelib modules. I've read through yoru docs and couldn't figure out how to make it work for my use case.happy-kitchen-89482
09/27/2021, 6:06 AMpython_library(sources=["**/*.py"])
pex_binary(name="bin", entry_point="cli-bin/main.py")
This assumes that you have configured project/
as a [source root](https://www.pantsbuild.org/docs/source-roots) in your pants.toml../pants package project:bin
will build a .pex file that, when executed, will run your main