~maddevelopers/mg5amcnlo/simple_unlops

« back to all changes in this revision

Viewing changes to bin/create_release.py

  • Committer: olivier-mattelaer
  • Date: 2022-03-18 11:10:18 UTC
  • mfrom: (970.1.20 3.3.2)
  • Revision ID: olivier-mattelaer-20220318111018-uh6z6tl8pphugovz
pass to 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /usr/bin/env python
 
1
#! /usr/bin/env python3
2
2
 
3
3
################################################################################
4
4
#
212
212
#create_empty.close()
213
213
 
214
214
# 2. Create the automatic documentation in the apidoc directory
215
 
try:
216
 
    status1 = subprocess.call(['epydoc', '--html', '-o', 'apidoc',
217
 
                               'madgraph', 'aloha',
218
 
                               os.path.join('models', '*.py')], cwd = filepath)
219
 
except:
220
 
    logging.error("Error while trying to run epydoc. Do you have it installed?")
221
 
    logging.error("Execution cancelled.")
222
 
    sys.exit()
 
215
#try:
 
216
#    status1 = subprocess.call(['epydoc', '--html', '-o', 'apidoc',
 
217
#                               'madgraph', 'aloha',
 
218
#                               os.path.join('models', '*.py')], cwd = filepath)
 
219
#except:
 
220
#    logging.error("Error while trying to run epydoc. Do you have it installed?")
 
221
#    logging.error("Execution cancelled.")
 
222
#    sys.exit()
 
223
#
 
224
#if status1:
 
225
#    logging.error('Non-0 exit code %d from epydoc. Please check output.' % \
 
226
#                 status)
 
227
#    sys.exit()
223
228
 
224
 
if status1:
225
 
    logging.error('Non-0 exit code %d from epydoc. Please check output.' % \
226
 
                 status)
227
 
    sys.exit()
228
229
#3. tarring the apidoc directory
229
230
status2 = subprocess.call(['tar', 'czf', 'doc.tgz', 'apidoc'], cwd=filepath)
230
231