1. #1
    Sencha User trbs's Avatar
    Join Date
    Mar 2007
    Posts
    310
    Vote Rating
    0
    trbs is on a distinguished road

      0  

    Default [0.9] Python Ext Builder

    [0.9] Python Ext Builder


    Announcing the Python JSB Builder 0.9

    Download Python Builder here

    The python builder has it's own google hosted project, so that people's suggestions can be incorporated, at http://code.google.com/p/extjs-py-builder/

    Notes / Futures:

    If your Python installation doesn't have them already, you'll need to install elementtree or cElementTree. If you cannot install elementree system-wide you must set the PYTHONPATH environment variable so that Python can still find the package where ever it's installed.

    The script runs on any Python version starting from 2.3. It should also run on Windows but that's not tested or supported. It's designed to be run on Unix style machines like: MacOSX, Linux, *BSD and Solaris. Since Python is installed on many Unix systems by default it should run flawlessly on almost any webserver.

    If you have administrative rights on the system and you want the build process to be very fast, you can install Python's just-in-time compiler called Psyco. This speeds up execution time (mostly jsmin) by more then 10 times.

    It can use various styles of (aggressive) minimization strategies. Like: jsmin, shrinksafe,
    a packer (packing is compression, and for production it's much better to use gzip then packers!!!!) and very soon yui-compressor support.

    If you have issues, find bugs, feature requests, please use the issue tracker and post in this thread.

    ChangeLog
    • 0.1: first public version (April 6, 2007)
    • 0.2: added options and jsmin, fallback on elementtree (April 14, 2007)
    • 0.3: reduced size by running rhino compressor on source files
    • 0.4: intermediated release, fixes to much to list here
    • 0.5: added options again, more error messages
    • 0.6: added jspacker
    • 0.7: fix for python2.3
    • 0.7.1: added psyco support (greatly speedsup jsmin)
    • 0.8: added yui-compressor (for javascript, css will follow soon)
    • 0.9: fixed import of elementtree for python2.5 (thanks aconran!)
    I'm part of the Ext Community
    Maintaining: Translations and some Examples
    Developing on: ExtJS Python Builder / Gozerbot
    Places: Ido.nl.eu.org / My ExtSamples / Trbs on Wiki / IRC

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,413
    Vote Rating
    129
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    To get this up and running with Python 2.5.2 I had to change the import statement.

    From:
    Code:
     from elementtree.ElementTree import ElementTree as ET
    To:
    Code:
     from xml.etree.ElementTree import ElementTree as ET
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha User trbs's Avatar
    Join Date
    Mar 2007
    Posts
    310
    Vote Rating
    0
    trbs is on a distinguished road

      0  

    Default


    Quote Originally Posted by aconran View Post
    To get this up and running with Python 2.5.2 I had to change the import statement.

    From:
    Code:
     from elementtree.ElementTree import ElementTree as ET
    To:
    Code:
     from xml.etree.ElementTree import ElementTree as ET
    Thanks aconran !
    Updated the code to check for the buildin Python2.5 version.
    I'm part of the Ext Community
    Maintaining: Translations and some Examples
    Developing on: ExtJS Python Builder / Gozerbot
    Places: Ido.nl.eu.org / My ExtSamples / Trbs on Wiki / IRC

  4. #4
    Ext User oddy's Avatar
    Join Date
    Jun 2009
    Posts
    53
    Vote Rating
    0
    oddy is on a distinguished road

      0  

    Default Target directory is not a ExtJS svn checkout directory

    Target directory is not a ExtJS svn checkout directory


    I checkout ExtJS from http://extjs-public.googlecode.com/svn/extjs-3.x
    And launch build_ext_packages.py like:
    build_ext_packages.py -CSJP "C:\Work\JS\extjs-3.x"
    And I've got: "Target directory is not a ExtJS svn checkout directory"

    C:\Work\JS\extjs-3.x IS my SVN checkout root directory

  5. #5
    Ext JS Premium Member dj's Avatar
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    573
    Vote Rating
    2
    dj has a spectacular aura about dj has a spectacular aura about dj has a spectacular aura about

      0  

    Default


    Quote Originally Posted by oddy View Post
    I checkout ExtJS from http://extjs-public.googlecode.com/svn/extjs-3.x
    And launch build_ext_packages.py like:
    build_ext_packages.py -CSJP "C:\Work\JS\extjs-3.x"
    And I've got: "Target directory is not a ExtJS svn checkout directory"

    C:\Work\JS\extjs-3.x IS my SVN checkout root directory
    The python builder doesn't work with the new JSON "makefile" format. See http://extjs.com/forum/showthread.ph...828#post351828
    Daniel Jagszent
    dɐɳiel@ʝɐgszeɳt.de <- convert to plain ASCII to get my email address

  6. #6
    Ext JS Premium Member dj's Avatar
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    573
    Vote Rating
    2
    dj has a spectacular aura about dj has a spectacular aura about dj has a spectacular aura about

      0  

    Default


    Quote Originally Posted by dj View Post
    The python builder doesn't work with the new JSON "makefile" format. See http://extjs.com/forum/showthread.ph...828#post351828
    I just noticed that you don't have a real SVN version. http://extjs-public.googlecode.com/svn/extjs-3.x does not mirror the Ext SVN. It only includes the released versions (the ZIP files you can download on this site) and has a different directory structure. If you want to build new versions off this, use http://extjs-public.googlecode.com/s...s-3.x/release/ as root directory.
    Daniel Jagszent
    dɐɳiel@ʝɐgszeɳt.de <- convert to plain ASCII to get my email address

  7. #7
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,538
    Vote Rating
    380
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Hi trbs,

    do you have any plans to update py-builder to use new *.jsb2 project files of Ext 3.x branch?
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  8. #8
    Ext User oddy's Avatar
    Join Date
    Jun 2009
    Posts
    53
    Vote Rating
    0
    oddy is on a distinguished road

      0  

    Default


    Quote Originally Posted by dj View Post
    I just noticed that you don't have a real SVN version. http://extjs-public.googlecode.com/svn/extjs-3.x does not mirror the Ext SVN. It only includes the released versions (the ZIP files you can download on this site) and has a different directory structure. If you want to build new versions off this, use http://extjs-public.googlecode.com/s...s-3.x/release/ as root directory.
    extjs-3.x is just a directory. SVN path for it is http://code.extjs.com/svn/ext/trunk