File: install.py

package info (click to toggle)
obitools 1.2.13%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,652 kB
  • sloc: python: 18,199; ansic: 1,542; makefile: 98
file content (25 lines) | stat: -rw-r--r-- 659 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
'''
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

from distutils import log

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))

    def run(self):
        log.info('\n\nRunning obidistutils install process\n\n')
        install_ori.run(self)