A first version of the obidistutils adapted to Python3
This commit is contained in:
19
distutils.ext/obidistutils/command/install.py
Normal file
19
distutils.ext/obidistutils/command/install.py
Normal file
@ -0,0 +1,19 @@
|
||||
'''
|
||||
Created on 6 oct. 2014
|
||||
|
||||
@author: coissac
|
||||
'''
|
||||
|
||||
try:
|
||||
from setuptools.command.install import install as install_ori
|
||||
has_setuptools=True
|
||||
except ImportError:
|
||||
from distutils.command.install import install as install_ori
|
||||
has_setuptools=False
|
||||
|
||||
class install(install_ori):
|
||||
|
||||
def __init__(self,dist):
|
||||
install_ori.__init__(self, dist)
|
||||
self.sub_commands.insert(0, ('build',lambda self: True))
|
||||
self.sub_commands.append(('install_sphinx',lambda self: self.distribution.serenity))
|
Reference in New Issue
Block a user