Skip to content

Commit

Permalink
Use flit that's been installed in the virtualenv
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamrick committed Jul 16, 2015
1 parent d10c2d2 commit c0169c5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import subprocess as sp
import sys
import os

print('Warning: this setup.py uses flit, not setuptools.')
print('Behavior may not be exactly what you expect. Use at your own risk!')

sp.check_call(['flit', 'install', '--deps', 'production'])
flit = os.path.join(os.path.dirname(sys.executable), 'flit')
cmd = [flit, 'install', '--deps', 'production']
print(" ".join(cmd))
sp.check_call(cmd)

0 comments on commit c0169c5

Please sign in to comment.