osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

virtualenvwrapper under OpenBSD's ksh


Under a new user account with ksh (the default) as the shell I issued
the following:

  $ pip3 install --user virtualenvwrapper
  Successfully installed pbr-3.1.1 six-1.11.0 stevedore-1.28.0 virtualenv-clone-0.2.6 virtualenvwrapper-4.8.2
  $ export WORKON_HOME=~/code/virtualenvs
  $ mkdir -p $WORKON_HOME

Good so far.  Based on

  https://bitbucket.org/dhellmann/virtualenvwrapper-hg

it sounds like ksh should be supported.  However when I try to enable
it, I get:

  $ . ~/.local/bin/virtualenvwrapper.sh
  ksh: /home/tim/.local/bin/virtualenvwrapper.sh[97]: ${.sh.file}": bad substitution

The line in question reads

  virtualenvwrapper.sh: export VIRTUALENVWRAPPER_SCRIPT="${.sh.file}"  

though it's not present in the latest tip version of the source.  I
tried pulling in that one virtualenvwrapper.sh file from the tip to
see if that would remedy the issue but it complains

  $ . ~/tmp/virtualenvwrapper.sh
  ksh: /home/tim/tmp/virtualenvwrapper.sh[247]: syntax error: `(' unexpected

on this line

 COMPREPLY=( $(compgen -W "`virtualenvwrapper_show_workon_options`" -- ${cur}) )

Is there something I'm missing or need to do to get pip (pip3.6) to
pull in a working version of virtualenvwrapper for ksh?

Thanks,

-tkc