mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 00:14:41 +01:00
wrap develop too
This commit is contained in:
parent
cb7b690c87
commit
827fbbfbe7
1 changed files with 10 additions and 0 deletions
10
setup.py
10
setup.py
|
@ -8,6 +8,7 @@ try:
|
|||
from setuptools import setup
|
||||
from setuptools.command.sdist import sdist
|
||||
from setuptools.command.install import install
|
||||
from setuptools.command.develop import develop
|
||||
HAVE_SETUPTOOLS = True
|
||||
except ImportError:
|
||||
from distutils.core import setup
|
||||
|
@ -45,6 +46,14 @@ class xsdist(sdist):
|
|||
build_tables()
|
||||
sdist.make_release_tree(self, basedir, files)
|
||||
|
||||
if HAVE_SETUPTOOLS:
|
||||
class xdevelop(develop):
|
||||
def run(self):
|
||||
clean_tables()
|
||||
build_tables()
|
||||
install.run(self)
|
||||
|
||||
|
||||
def main():
|
||||
if sys.version_info[0] < 3:
|
||||
sys.exit('xonsh currently requires Python 3.4+')
|
||||
|
@ -78,6 +87,7 @@ def main():
|
|||
'xonshcon = xonsh.pyghooks:XonshConsoleLexer',
|
||||
],
|
||||
}
|
||||
skw['cmdclass']['develop'] = xdevelop
|
||||
setup(**skw)
|
||||
|
||||
logo = """
|
||||
|
|
Loading…
Add table
Reference in a new issue