Re: Building gobject-introspection with CPython 3.2?



On Tue, Jun 24, 2014 at 8:39 PM, Dan Stromberg
<dstromberglists gmail com> wrote:
Right now, I'm compiling CPython 3.3 into
/usr/local/cpython-3.3/bin/python3, along with GTK+ and a bunch of other
stuff.  Is there some environment variable or something I can (temporarily)
point at CPython 2.7 while doing this, without actually ending up with a
CPython 2.7 living in /usr/local/cpython-3.3?

This is a bit unclear, perhaps what you want is the --prefix option
for configuring gobject-introspection?

gobject-introspection $ ./configure --prefix=/usr/local/cpython-3.3

pygobject $ ./configure --prefix=/usr/local/cpython-3.3
--with-python=/usr/local/cpython-3.3/bin/python3

You can also use the PYTHON environment variable instead of
"--with-python". If you are not already using jhbuild, I recommend it:
  https://wiki.gnome.org/HowDoI/Jhbuild

After that you can set custom configure flags for pygobject in the
jhbuild config:
  module_autogenargs['pygobject'] =
'--with-python=/usr/local/cpython-3.3/bin/python3'
See: https://wiki.gnome.org/Projects/PyGObject#Development

-Simon


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]