"""Variant of 'sdist' that (re)builds the documentation first""" |
"""Variant of 'sdist' that (re)builds the documentation first""" |
|
|
def run(self): |
def run(self): |
|
|
# Build docs before source distribution |
# Build docs before source distribution |
|
try: |
|
import happydoclib |
|
except ImportError: |
|
pass |
|
else: |
self.run_command('happy') |
self.run_command('happy') |
|
|
# Run the standard sdist command |
# Run the standard sdist command |
old_sdist.run(self) |
old_sdist.run(self) |
|
|
|
|
|
|
|
|
|
|
class test(Command): |
class test(Command): |
|
|
"""Command to run unit tests after installation""" |
"""Command to run unit tests after installation""" |