Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5033] Tooling: Use the existing python interpreter for docgen.py from SCons

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-08-17T09:46:05.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sSprint 2011-33, Release 1.8.0
ComponentsTooling
Labelsn/a
ReporterMarshall Culpepper
AssigneeMarshall Culpepper
Created2011-08-16T22:48:57.000+0000
Updated2017-03-16T21:00:46.000+0000

Description

Currently we're calling "python" directly when invoking the docgen script from package.py / SCons. We should be able to pass on the current interpreter directly so we don't lose any configuration / environment settings that were used to invoke the SCons build. This is currently effecting the Linux CI server which has two Python installations: 2.4, and 2.6. Python 2.4 is the default installation, but the CI server overrides this by explicitly using python2.6 to build w/ SCons.

Comments

  1. Marshall Culpepper 2011-08-16

    To verify the fix: Do a full "scons" build, and verify that the path printed below "Generating JSCA" is the full system path of your Python installation
       $ scons
       ( .. lots of build output .. )
       Generating JSCA...
       /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /Users/marshall/Code/titanium_mobile/apidoc/docgen.py -f jsca
       scons: done building targets.
       
  2. Lee Morris 2017-03-16

    Closing ticket as fixed.

JSON Source