Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8320373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:37:56+00:00 2026-06-08T22:37:56+00:00

How would I create builders that runs epydoc or/and pylint from a scons built?

  • 0

How would I create builders that runs epydoc or/and pylint from a scons built?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T22:37:58+00:00Added an answer on June 8, 2026 at 10:37 pm

    Here is another method, probably more portable to large projects.

    First, define epydoc.py in site_scons/site_tools (or where ever you have those) to be:

    # -*- coding: utf-8 -*-
    import SCons.Builder
    import SCons.Action
    
    def complain_epydoc(target, source, env):
        print 'INFORMATION: epydoc binary was not found (see above). Documentation has not been built.'
    
    def generate(env):
        env['EPYDOC'] = find_epydoc(env)
        if env['EPYDOC'] != None:
            opts = '--quiet --html --inheritance listed --graph all --css white --parse-only '
            env['EPYDOCCOM'] = '$EPYDOC ' + opts + '-o $TARGET  $SOURCES'
            env['BUILDERS']['epydoc'] = SCons.Builder.Builder(action=env['EPYDOCCOM'])
        else:
            env['BUILDERS']['epydoc'] = SCons.Builder.Builder(action=env.Action(complain_epydoc))
    
    def find_epydoc(env):
        b=env.WhereIs('epydoc')
        if b == None:
            print 'Searching for epydoc: not found. Documentation will not be built'
        else:
            print 'Searching for epydoc: ', b
        return b
    
    def exists(env):
        if find_epydoc(env) == None:
            return 0
        return 1
    

    In the main SConstruct file, add:

    import epdoc
    env.Tool("epydoc")
    

    Then, in your SConstruct file or SConscript files, you can build documentation like so:

    Alias('epydoc', env.epydoc(source=python_code_files, target=Dir('docs')))
    

    Note: you could do the same thing for ctags and pylint, just to name a few.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Versioning If your events changes you would create a new version of that event,
I need to have script.sh , that would create files f1.txt and f2.txt with
How would I create a Mongoid model that has the ability to be saved
How would I create a DecimalFormat that would only have seven digits total and
How would I create a page that allows the user to view their profile.
How would I create the following scenario that rails can provide for carrierwave, using
I would like create a custom DataRow that will have -let's say- a propery
I'm looking to create an application (preferably C++) that would let me compile an
In Interface Builder components I have Gradient Button I would like to create this
I'm currently writing a function what would create a zip file, which will be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.