chrisbarrett / skeletor.el

Powerful project skeletons for Emacs
GNU General Public License v3.0
126 stars 17 forks source link

skeletor unable to find virtualenv executable #40

Open montaropdf opened 5 years ago

montaropdf commented 5 years ago

Hello,

I am trying to create a python3 project using skeletor, but it keeps saying that virtualenv is not install, while virtualenv can be found by the command-line tool which .

roland  tanko  ~  $  which virtualenv
virtualenv-3                 virtualenv-clone-3           virtualenvwrapper-3.sh       virtualenvwrapper_lazy_load  
virtualenv-3.6               virtualenv-clone-3.6         virtualenvwrapper_lazy-3.sh  virtualenvwrapper_load       

Could it be that skeletor is searching for virtualenv explicitely and doesn't accept the suffix -3 and -3.6?

My system is a Linux Fedora 28.

chrisbarrett commented 5 years ago

Hey there!

Yep, if you look at the makefile in the project template here, you'll see it's calling virtualenv explicitly.

If you need to use virtualenv-3, you could get around this by copying and modifying the python-library template.

montaropdf commented 5 years ago

Do you think it could be relatively easy to tell skeletor to discover all the versions of virtualenv available on the system and ask the user to pick one?

chrisbarrett commented 5 years ago

Yeah, that shouldn't be too hard to hack together. I haven't touched this project in a few years, so you're welcome to take a stab at a PR. :)

In the meantime, you should be able to adapt the existing template to get by.

montaropdf commented 5 years ago

I have already created a skeleton and some code for those improvement.

I just need to discover how to generate a PR and submit it.

I will try to provide my modifications in the coming weeks.