Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Getting to know PyXPCOM

Installation and setup

Return to article

# =========== START OF SECTION FOR COMMON EDITS =====================
# this will have an "xpcom" subdir on install
INSTALLDIR=/usr/lib/python2.1/site-packages/
PYTHON_SRC=/usr/lib/python2.1/
# =========== START OF SECTION FOR COMMON EDITS =====================
# We expect a "mozilla" directory under this
MOZ_SRC=../../../..
MOZCOMPONENTSDIR=$(MOZ_SRC)/mozilla/dist/bin/components
MOZINCLUDES=-I$(MOZ_SRC)/mozilla/dist/include -I$(MOZ_SRC)/mozilla/dist/include/nspr
MOZLIBDIR=$(MOZ_SRC)/mozilla/dist/lib
# this is setup to use the *installed* Python directory structure
#  - To use the development Python dir structure some changes are
#    necessary here *and* below (below, because there two lib dir
#    to include in LDFLAGS for the dev dir structure)
PYTHONINCLUDES=-I/usr/include/python2.1
PYTHONLIBDIR=/usr/lib/python2.1/config
XPIDL=$(MOZ_SRC)/mozilla/dist/bin/xpidl
IDLINCLUDES=-I$(MOZ_SRC)/mozilla/dist/idl

Return to article