Skip to content

Commit

Permalink
py2 install fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wlav committed Nov 15, 2021
1 parent 7767d66 commit 75f4a70
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
Expand Up @@ -52,7 +52,12 @@ def find_version(*file_paths):
#
class my_install(_install):
def __init__(self, *args, **kwds):
super(_install, self).__init__(*args, **kwds)
if 0x3000000 <= sys.hexversion:
super(_install, self).__init__(self, *args, **kwds)
else:
# b/c _install is a classobj, not type
_install.__init__(self, *args, **kwds)

try:
import cppyy_backend as cpb
self._pchname = 'allDict.cxx.pch.' + str(cpb.__version__)
Expand Down

0 comments on commit 75f4a70

Please sign in to comment.