Skip to content

Commit

Permalink
Generate wheels if the project requires it
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljoseph committed Nov 15, 2013
1 parent 4a207e3 commit 0cd1d9a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions changes/packaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import sh
import virtualenv

from changes import config, shell, verification
from changes import config, shell, probe, verification

log = logging.getLogger(__name__)

Expand All @@ -18,7 +18,10 @@ def make_virtualenv():

def install():
module_name, dry_run, new_version = config.common_arguments()
result = shell.handle_dry_run(sh.python, ('setup.py', 'clean', 'sdist'))
commands = ['setup.py', 'clean', 'sdist']
if probe.has_requirement('wheel'):
commands.append('bdist_wheel')
result = shell.handle_dry_run(sh.python, tuple(commands))
if result:
tmp_dir = make_virtualenv()
package_name = config.arguments.get('--package-name') or module_name
Expand Down

0 comments on commit 0cd1d9a

Please sign in to comment.