[Distutils] pipenv best practices?
Nick Coghlan
ncoghlan at gmail.com
Mon Jan 15 23:25:59 EST 2018
On 16 January 2018 at 14:24, Nick Coghlan <ncoghlan at gmail.com> wrote:
> On 16 January 2018 at 05:46, Brett Cannon <brett at python.org> wrote:
>> On Mon, 15 Jan 2018 at 00:33 Chris Withers <chris at withers.org> wrote:
>>> Continuing on the deployment theme: I'm used to being able to put
>>> /path/to/some/ve/bin/some_script in crontabs and the like, where
>>> some_script comes form a setuptools entry point.
>>> What's the canonical way of doing this with pipenv?
>>
>> Beats me. I think there's a command to get back to the venv that pipenv
>> created on your behalf.
>
> "pipenv --venv" gives the path for the current project, so what I tend
> to do is run "ls -s $(pipenv --venv) .venv" from the directory
> containing Pipfile and Pipfile.lock in order to create a deterministic
> path name.
Oops, that should have been "ln -s $(pipenv --venv) .venv".
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Distutils-SIG
mailing list