Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [linux-distros-dev] Backporting PyDev to Java 1.4

Here's a new patch,

This one works against the newly released PyDev 1.1.0. All of the
patches are now in one patch instead of 3, as previously.

I'm still working on getting a default interpreter set-up, and I'm
hitting a rut there. I'll give it another try tonight.

The new 1.1.0 patch can be found at:
http://people.redhat.com/ifoox/pydev/eclipse-pydev-1.1.0-backport-megapatch.patch

Thanks,
Igor

P.S. If anybody is using this for other distros, I'd appreciate any
feedback.


On Tue, 2006-06-06 at 11:10 -0400, Igor Foox wrote:
> I'm attaching another patch that ads a TestDependent.java file in
> org.python.pydev.core/tests, which is needed if you want to run
> the tests, or if you want all of the plugins to be able to build
> cleanly from within Eclipse. It currently contains Windows-specific
> constants that were taken from TestDependent.template, but at least
> it makes it build. I'll figure out more useful constants later to
> actually make the tests run and then repost a new patch.
> 
> Thanks,
> Igor
> 
> On Tue, 2006-06-06 at 00:08 -0400, Igor Foox wrote:
> > Hi,
> > 
> > Enclosed are my patches for PyDev 1.0.8. I am using Ben Konrath's
> > package-build patch to build these. Here are the steps that need
> > to be done to build pydev:
> > 
> > 1. Check out from CVS with the Tag 'Pydev_1_0_8' the following modules:
> > org.python.pydev
> > org.python.pydev.ast
> > org.python.pydev.core
> > org.python.pydev.debug
> > org.python.pydev.feature
> > org.python.pydev.help
> > org.python.pydev.jython
> > org.python.pydev.parser
> > org.python.pydev.templates
> > 
> > 2. Apply the enclosed patches.
> > 
> > 3. Run sed to replace the plugin version (unfotunately the version
> > number is left as 0.9.7.1 in CVS):
> > # Replace all references to 0.9.7.1 with the correct version number
> > for f in `grep -rl '0.9.7.1' *` ; do
> >   if [ -f $f ]; then
> >     sed --in-place "s/0.9.7.1/${version}/g" $f
> >   fi
> > done
> > 
> > 4. Remove retroweaver-rt.jar, we don't use retroweaver since the source
> > code is backported to Java 1.4:
> > 
> > find . -name 'retroweaver-rt.jar' -exec rm {} \;
> > 
> > 5. In fedora we also remove the jars included in the plugin and symlink
> > to system jars.
> > 
> > 6. prepare run enviornment
> > 
> > 7. Run the build with:
> > # build the main pydev feature
> > java -cp %{eclipse_base}/startup.jar                   \
> >      -Duser.home=$homedir                              \
> >      org.eclipse.core.launcher.Main                    \
> >      -application org.eclipse.ant.core.antRunner       \
> >          -verbose \
> >      -Dtype=feature                                    \
> >      -Did=org.python.pydev.feature                     \
> >      -DbaseLocation=$SDK                               \
> >      -DsourceDirectory=$(pwd)                          \
> >      -DbuildDirectory=$(pwd)/build                     \
> >      -Dbuilder=
> > %{eclipse_base}/plugins/org.eclipse.pde.build_3.1.2/templates/package-build
> > 
> > 
> > The first patch (eclipse-pydev-1.0.8-backport-megapatch.patch) is the
> > actual backporting, while the second (eclipse-pydev-noretroweaver.patch)
> > removes the dependency on retroweaver-rt.jar from the manfiest files.
> > 
> > I'm still working on a patch to provide a default python interpreter
> > path and site-packages path, and will hopefully have something by
> > tomorrow.
> > 
> > Comments are welcome,
> > Thanks,
> > Igor
> > 
> > 
> > On Thu, 2006-06-01 at 15:44 -0400, Igor Foox wrote:
> > > Hi,
> > > 
> > > For those who are not familiar with it PyDev is a (the) Python
> > > environment plugin for Eclipse. It currently uses Java 1.5 so it's
> > > unshippable by many Linux distros. We are currently shipping version
> > > 0.9.3 in Fedora, this version still uses Java 1.4 but it's quite old.
> > > 
> > > I know that some Ubuntu guys backported version 1.0.3 to Java 1.4
> > > previously and it's currently available in Ubuntu. I recently backported
> > > version 1.0.6 to Java 1.4, and I'm posting the patches here in case
> > > others want to use them. I'm going to update the patches for the
> > > latest version (1.0.8), which is a bug fix release, and repost them.
> > > I will only be able to get to that early next week, so if anybody wants
> > > to do it, I'll be more than happy :-).
> > > 
> > > I'm also planning to make some other patches that will set some useful
> > > defaults in the Preferences, such as the location of the Python
> > > interpreter and the site-packages directory. This will probably be
> > > slightly different for the various distros but that's a small
> > > difference.
> > > 
> > > I'm happy to take any criticism about the patch. ;-)
> > > Igor
> > > 
> > > P.S. From minimal testing it seems to work fine, but I haven't run
> > > the test suit on it yet.
> > > 
> > > 
> > > _______________________________________________
> > > linux-distros-dev mailing list
> > > linux-distros-dev@xxxxxxxxxxx
> > > https://dev.eclipse.org/mailman/listinfo/linux-distros-dev
> > _______________________________________________
> > linux-distros-dev mailing list
> > linux-distros-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/linux-distros-dev
> _______________________________________________
> linux-distros-dev mailing list
> linux-distros-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/linux-distros-dev



Back to the top