Skip to content

Commit

Permalink
Windows install coverage fix
Browse files Browse the repository at this point in the history
- When installing coverage with setuptools with setuptools, there is a
  unicode error. Installing coverage using pip before the rest of
  install should fixes this.
  • Loading branch information
fgoudreault committed Jun 20, 2017
1 parent a072353 commit a9569d1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from setuptools import setup
import pip
import sys
import versioneer

Expand All @@ -16,6 +17,11 @@
" purposes:"), develop_packages)
install_packages += develop_packages

# if on windows, there is a bug when installing coverage with setuptools.
# installing it with pip before setup fixes this.
if sys.platform == "win32" and "coverage" in install_packages:
pip.main(["install", "coverage"])
install_packages.remove("coverage")

setup(name="auxiclean",
version=versioneer.get_version(),
Expand Down

0 comments on commit a9569d1

Please sign in to comment.