Export to GitHub

pyp - issue #6

Please put this on pypi


Posted on Mar 11, 2012 by Happy Rabbit

That will make it easier to install.

Comment #1

Posted on Mar 11, 2012 by Happy Bear

I've been pushing to get pyp merged into homebrew for easy installation on Macs [1]

You're more than welcome to chime in and +1 the request.

[1] - https://github.com/mxcl/homebrew/pull/9737

Comment #2

Posted on Mar 11, 2012 by Happy Rabbit

It's in Homebrew now! Next stop: PyPI! :-)

Comment #3

Posted on Mar 11, 2012 by Happy Bear

Indeed it is has been merged upstream several hours ago!

PyPI is less under my control ;)

I'll cntinue updating the brew formula on any new release.

Comment #4

Posted on Mar 12, 2012 by Grumpy Lion

I added the latest version here:

http://pypi.python.org/pypi/pyp/2.11

thanks all,

t

Comment #5

Posted on Mar 16, 2012 by Massive Panda

Comment deleted

Comment #6

Posted on Mar 16, 2012 by Massive Panda

Now it's on Pypi I was expecting pip to work:

$ sudo pip install pyp

Downloading/unpacking pyp

Could not find any downloads that satisfy the requirement pyp

No distributions at all found for pyp

Storing complete log in /Users/me/.pip/pip.log

Comment #7

Posted on Mar 16, 2012 by Happy Rabbit

Ditto. pip install doesn't work for me either.

I think that this is because the release has no files associated with it. If you look at pypi for most packages, they have a "files" section with a tar.gz file.

http://pypi.python.org/pypi/pyp/2.11 does not.

So I think you need to upload a file.

Comment #8

Posted on Mar 16, 2012 by Grumpy Lion

ok, thanks for the info. I'll get a tar ball up there when I get a chance.

t

Comment #9

Posted on Mar 18, 2012 by Happy Kangaroo

it is removed from Homebrew and it still don't work on pypi

Comment #10

Posted on Mar 18, 2012 by Happy Rabbit

Why was it removed from Homebrew?

Comment #11

Posted on Mar 18, 2012 by Happy Kangaroo

reason was that it is now on pypi.

Comment #12

Posted on Mar 18, 2012 by Happy Rabbit

I guess if one is desperate to install pyp they can do something like:

wget -O $(which python)/pyp http://pyp.googlecode.com/files/pyp && chmod +x $(which python)/pyp

Comment #13

Posted on Mar 19, 2012 by Grumpy Lion

I've uploaded the package to pypi...I had to change the name to pyp.py, which I am not crazy about as it doubles the characters, but hopefully this should work for you guys.

Comment #14

Posted on Mar 19, 2012 by Happy Kangaroo

after install pyp still dont work,

i see that it is in, -rw-r--r-- 1 root wheel 91030 Mar 19 10:54 /Library/Python/2.7/site-packages/pyp.py and it is not executable

for instance fabric puts file in -rwxr-xr-x 1 root admin 250 Feb 13 11:48 /usr/local/bin/fab

sudo pip install pyp
Downloading/unpacking pyp Downloading pyp-2.11.tar.gz Running setup.py egg_info for package pyp

Installing collected packages: pyp Running setup.py install for pyp

Successfully installed pyp Cleaning up...

zsh: command not found: pyp.py zsh: command not found: pyp

PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin

Comment #15

Posted on Mar 19, 2012 by Grumpy Lion

Ok, thanks for the info. I'll see if I can get this in a more standard location.

Comment #16

Posted on Mar 19, 2012 by Happy Rabbit

It sounds to me like the setup.py is not quite right. You shouldn't have to rename pyp to pyp.py. I suspect you're doing that because otherwise distutils/setuptools isn't detecting pyp as a script or even as a Python file? If you have the write incantations it should work. For example, the following seems to work pretty well for me locally:

https://gist.github.com/2117804

Comment #17

Posted on Mar 19, 2012 by Happy Rabbit

By the way, the key bit of magic here is the "scripts" keyword argument. More info on that at http://docs.python.org/distutils/setupscript.html#installing-scripts -- that whole page is a pretty quick and nicer primer on distutils.

If you've got the time, there was a nice talk at PyCon on posting to PyPI -

https://us.pycon.org/2012/schedule/presentation/63/ http://pyvideo.org/video/678/sharing-is-caring-posting-to-the-python-package

Comment #18

Posted on Mar 19, 2012 by Grumpy Lion

awesome, thanks for the help! I found the info for scripts this am, but I used (mostly) your setup file. It's on pypi now, hopefully in it's proper form. Let me know if it installs for you.

t

Comment #19

Posted on Mar 19, 2012 by Happy Kangaroo

now it works, thx

Comment #20

Posted on Mar 19, 2012 by Grumpy Lion

ok, great, thanks for all your help everyone, especially msabramo!

Comment #21

Posted on May 16, 2012 by Grumpy Lion

Update wiki with better notes about math usage

Comment #22

Posted on Sep 6, 2012 by Happy Kangaroo

it is no longer working

$ sudo pip install -U pyp Downloading/unpacking pyp Downloading pyp-2.12.macosx-10.6-intel.tar.gz Running setup.py egg_info for package pyp Traceback (most recent call last): File "", line 14, in IOError: [Errno 2] No such file or directory: '/home/brko/mikro/build/pyp/setup.py' Complete output from command python setup.py egg_info: Traceback (most recent call last):

File "", line 14, in

IOError: [Errno 2] No such file or directory: '/home/brko/mikro/build/pyp/setup.py'

Status: Fixed

Labels:
Type-Defect Priority-Medium