Skip to content

Commit 6f8de2f

Browse files
authored
Merge pull request #174 from minhsueh/master
Fix Python version comparison logic in post-gen hook
2 parents 788d21d + 08dd585 commit 6f8de2f

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ To use this boilerplate:
2020
1. Install the requirements:
2121
```
2222
$ pip install cookiecutter
23-
$ pip install virtualenv
2423
```
2524
[Node.js/npm is also required.](https://nodejs.org/en/)
2625
2. Run cookiecutter on the boilerplate repo:

hooks/post_gen_project.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,7 @@ def _execute_command(cmd):
5858
sys.exit(0)
5959

6060
# Create a virtual env
61-
if sys.version.split(' ')[0] > '3.2':
62-
venv = '{} -m venv venv'.format(sys.executable)
63-
else:
64-
venv = 'virtualenv venv'
61+
venv = '{} -m venv venv'.format(sys.executable)
6562

6663
# noinspection PyBroadException
6764
try:

0 commit comments

Comments
 (0)