nyov / pythonext Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/pythonext
License: Other
Automatically exported from code.google.com/p/pythonext
License: Other
Python Extension (PythonExt) README ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Introduction ============ This provides instructions for setting up and building the PyXPCOM extension from source. Layout: build/ - scripts for creating pythonext. patches/ - specific pyxpcom/pydom patches that need be applied pybootstrap/ - sets up python and then pyxpcom libraries. pythonext_skeletion/ - framework for the pythonext extension. samples/ - examples using python in a mozilla extension. stub_pydom/ - loads the pydom component and necessary libraries. How the extension works ======================= The pybootstrap directory is copied into the mozilla/extensions directory and the mozilla build is configured to compile this stub extension. The bootstrap is responsible for loading the correct (internal) python library that will be used by pyxpcom and pydom. The pybootstrap module will load the modified pyxpcom loader component and then trigger the normal pyxpcom registration process. A pyxpcom registration helper is used "pyIXPCOMExtensionHelper.idl" to ensure that *all* installed python xpcom extensions get registered and that the python path is adjusted correctly for any of these extensions. An extension that wants to add it's own python library code will need to package the code into a pylib subdirectory of the extension xpi, this pylib directory will automatically get added to sys.path at application startup. Build process ============= The Mozilla build requirements must already be met. Mac OS X and Linux ------------------ Change to the build directory and then execute the build script: $ ./build_pythonext.sh If the build is successful, you will find an extension (xpi) file in the build directory that can be installed into a Mozilla based application. Windows ------- In addition to the mozilla build requirements, you will also need to have the "wget" executable available on your PATH. Change to the build directory and then execute the build script: $ ./build_pythonext.bat If the build is successful, you will find an extension (xpi) file in the build directory that can be installed into a Mozilla based application. History ======= This extension was previously called pyxpcomext when it was only using the Python XPCOM bridging, but now that the extension also includes the Python DOM handling code it was renamed to pythonext. Contributors ============ * lekma - reworked the builds scripts and the pybootstrap code. * Simon Kornblith - patches to pybootstrap and build scripts.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.