Skip to content

Commit

Permalink
fix setup.py to (hopefully) fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alegresor committed Aug 26, 2020
1 parent 5854e78 commit 9afbe7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Makefile for compiling QRNG, running test suites, and compiling documentaion
# Makefile for, running test suites, running workouts, and compiling documentaion
#
# Syntax notes:
# @ means don't echo command
Expand Down
18 changes: 1 addition & 17 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,7 @@
import os
import subprocess

class CustomInstall(install):
"""Custom handler for the 'install' command."""

def run(self):
# compile c files
try:
os.system('make qrng')
except:
print('Problem compiling qrng c files')
# compile files used for docuemtnation
try:
os.system('make _doc')
except:
print('Problem compiling html or pdf documenation')
super(CustomInstall, self).run()


class CleanCommand(Command):
Expand Down Expand Up @@ -87,6 +73,4 @@ def run(self):
'qmcpy/discrete_distribution/c_lib/sobol_seq51.c',
'qmcpy/discrete_distribution/c_lib/MRG63k3a.c'],
extra_compile_args=['-shared'])],
cmdclass={
'clean': CleanCommand,
'install': CustomInstall})
cmdclass={'clean': CleanCommand})

0 comments on commit 9afbe7a

Please sign in to comment.