Skip to content

Commit

Permalink
Pass arguments to internal venv module if specified (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbovbel committed Mar 6, 2019
1 parent 3172c6d commit 3aef0cc
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions catkin_virtualenv/src/dh_virtualenv/deployment.py
Expand Up @@ -155,23 +155,23 @@ def create_virtualenv(self):
else:
virtualenv = ['virtualenv']

if self.use_system_packages:
virtualenv.append('--system-site-packages')
else:
virtualenv.append('--no-site-packages')
if self.python:
virtualenv.extend(('--python', self.python))

if self.setuptools:
virtualenv.append('--setuptools')
if self.use_system_packages:
virtualenv.append('--system-site-packages')
else:
virtualenv.append('--no-site-packages')

if self.verbose:
virtualenv.append('--verbose')
if self.setuptools:
virtualenv.append('--setuptools')

if self.python:
virtualenv.extend(('--python', self.python))
if self.verbose:
virtualenv.append('--verbose')

# Add in any user supplied pip args
if self.extra_virtualenv_arg:
virtualenv.extend(self.extra_virtualenv_arg)
# Add in any user supplied pip args
if self.extra_virtualenv_arg:
virtualenv.extend(self.extra_virtualenv_arg)

virtualenv.append(self.package_dir)
check_call(virtualenv)
Expand Down

0 comments on commit 3aef0cc

Please sign in to comment.