def run(self):
		try:
			import sphinx
			if not os.path.exists(self.out_dir):
				if self.dry_run:
					self.announce('skipping creation of directory %s (dry run)' % self.out_dir)
				else:
					self.announce('creating directory %s' % self.out_dir)
					os.makedirs(self.out_dir)
			
			if self.dry_run:
				self.announce('skipping %s (dry run)' % ' '.join(self.sphinx_args))
			else:
				self.announce('running %s' % ' '.join(self.sphinx_args))
				sphinx.main(self.sphinx_args)
		except __HOLE__, e:
			log.info('Sphinx not installed -- skipping documentation. (%s)', e)
dataset/ETHPy150Open rsms/smisk/setup.py/sphinx_build.run