472,326 Members | 2,340 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,326 software developers and data experts.

My n00bie brain hurts after "Python setup.py install".

I downloaded Mark Pilgrims's feedparser.py in a zipfile to my Windows
machine, unzipped it and tried to install it to no avail.

Here is the result =>

C:\>python c:\scripts\feedparser-4.1\setup.py install
running install
running build
running build_py
file feedparser.py (for module feedparser) not found
running install_lib
warning: install_lib: 'build\lib' does not exist -- no Python modules
to install
running install_egg_info
Writing C:\Python25\Lib\site-packages\feedparser-4.1-py2.5.egg-info

WTF? The file feedparser.py did exist in the same place as setup.py.
Even if it works, what exactly does this setup.py do for me? If I just
manually place feedparser.py in my Python site-packages file it works
fine. As for that egg-info file, I googled "python eggs" and now I am
really confused.

Jun 27 '08 #1
2 4219
On Jun 22, 9:05 am, bsag...@gmail.com wrote:
I downloaded Mark Pilgrims's feedparser.py in a zipfile to my Windows
machine, unzipped it and tried to install it to no avail.

Here is the result =>

C:\>python c:\scripts\feedparser-4.1\setup.py install
The convention is to run setup.py from the current directory, unless
instructed otherwise; what did the package's readme say? Try:

cd \scripts\feedparser-4.1
python setup.py install
running install
running build
running build_py
file feedparser.py (for module feedparser) not found
running install_lib
warning: install_lib: 'build\lib' does not exist -- no Python modules
to install
running install_egg_info
Writing C:\Python25\Lib\site-packages\feedparser-4.1-py2.5.egg-info

WTF? The file feedparser.py did exist in the same place as setup.py.
Even if it works, what exactly does this setup.py do for me? If I just
manually place feedparser.py in my Python site-packages file it works
fine.
In general, a setup.py install may do lots of things besides coping 1
file. Manually placing files in site-packages is not a good habit to
get into.
As for that egg-info file, I googled "python eggs" and now I am
really confused.
Eggs are part of a new experimental package distribution scheme. Don't
worry about it.

Cheers,
John

Jun 27 '08 #2
John Machin wrote:
On Jun 22, 9:05 am, bsag...@gmail.com wrote:
>I downloaded Mark Pilgrims's feedparser.py in a zipfile to my Windows
machine, unzipped it and tried to install it to no avail.
Eggs are part of a new experimental package distribution scheme. Don't
worry about it.
Yes. "Eggs" are connected to an "easy install" system which has
an annoying tendency to either fail or silently do the wrong thing.
They were an attempt to apply the "packaging" mania of Java to Python.
Fortunately, ".egg" files are actually ".zip" files, so you can
rename them, unpack them, and get at the good parts.

John Nagle
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Daniel Frickemeier | last post by:
Hi, I have a strange problem. I´m developing a small python-program wiht the mysql-python-module. The program should run on a server without...
3
by: Wardeaux | last post by:
All, I've written a "setup" wrapper that calls a sequence of "setup.exe", and all works except when I call the setup.exe for the MSDE, then it...
30
by: bblais | last post by:
Hello, Let me start by saying that I am coming from a background using Matlab (or Octave), and C++. I am going to outline the basic...
2
by: Blair LeGent | last post by:
Following the directions in "Python in a Nutshell" (an excellent book), I entered the C code for "helloworld.c", saved it as a file, and entered...
3
by: Gina_Marano | last post by:
Hey All, I have created an application and an installer for it using Visual Studios "Setup and Deployment" project template. It works great (for...
0
by: Laurence | last post by:
Hi there, I cannot use "setup /i xx" to install DB2 Client (v9fp2_win_client.zip) on Win XP SP2. The installation process was stopped at the...
2
by: fartknuckle | last post by:
When I try to build and install python from source It configures and makes fine but upon 'make install' I always get to this point: Listing...
3
by: kyosohma | last post by:
Hi, Is there some way to get a list of "impure" Python modules/extensions from PyPI? I know the mySQL module is a good example, but I am...
1
by: tinnews | last post by:
I have installed a development version of rdiff-backup using its "setup.py install" but now find I need to uninstall it. Is there any 'easy' way...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.