Hi all,

Owen and I were trying out virtualenv + easy_install on pygr today and
ran into some problems with easy_install.  One problem is to be
expected and can be ignored; the other is a bug with easy_install that
only minorly affects us.  They are placed in this e-mail for posterity,
not for fixing!

So, when using

        easy_install /path/to/some/git/clone

you find:

--

Problem #1 -- you need to have Pyrex installed, because the git repo
doesn't contain the generated C files.  Duh.  OK, fine.

There are a couple of ways to try to fix this, but all of them introduce
the step of requiring 

--

Problem #2: there an odd metaclass error,

...
  File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 63, in run
  File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 29, in <lambda>
  File "/Users/t/dev/pygr/setup.py", line 26, in <module>
    import pygr
  File "/private/tmp/pygr/pygr/__init__.py", line 7, in <module>
    import metabase
  File "/private/tmp/pygr/pygr/metabase.py", line 7, in <module>
    from coordinator import XMLRPCServerBase
  File "/private/tmp/pygr/pygr/coordinator.py", line 930, in <module>
    class ResourceFile(file):
TypeError: Error when calling the metaclass bases
    first argument must be callable

that seems to come from subclassing 'file'.  I haven't isolated the
error yet, but changing 'file' to 'object' does avoid it (while breaking
ResourceFile, presumably -- not a fix, just a note ;).

You can still, however, build an egg with 'bdist_egg' and then
easy_install *that*.

--

The upshot is: let's make sure to distribute eggs and place them in the
right place; otherwise people are going to have a tough time using
easy_install to install pygr.

cheers,
--titus
-- 
C. Titus Brown, c...@msu.edu

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pygr-dev" group.
To post to this group, send email to pygr-dev@googlegroups.com
To unsubscribe from this group, send email to 
pygr-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pygr-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to