Skip to content

Commit

Permalink
[Python] Use right bdist_wheel.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Jan 21, 2020
1 parent 11b3977 commit c0849fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packaging/wheel/setup.py
@@ -1,7 +1,7 @@
from setuptools import setup, Extension
from setuptools.command.install import install
from setuptools.command.sdist import sdist
from distutils.command.bdist import bdist
from wheel.bdist_wheel import bdist_wheel

import subprocess
import sys
Expand Down Expand Up @@ -35,7 +35,7 @@ def check_cmake3(path):
args = (path, "--version")
popen = subprocess.Popen(args, stdout=subprocess.PIPE)
popen.wait()
output = popen.stdout.read()
output = popen.stdout.read().decode("utf-8")
prefix_len = len( "cmake version " )
version = output[prefix_len:].split( '.' )
return int( version[0] ) >= 3
Expand Down Expand Up @@ -130,10 +130,10 @@ def run(self):
sdist.run(self)


class CustomWheelGen(bdist):
class CustomWheelGen(bdist_wheel):
# Do not generate wheel
def run(self):
return
pass


version = get_version()
Expand Down

0 comments on commit c0849fe

Please sign in to comment.