473,407 Members | 2,629 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 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 4353
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 any mysql-installation. Is there any posibility to...
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 gets about half way through and then hangs... The...
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 nuts-and-bolts of how I work in these languages, and ask for...
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 this script and saved it as setup.py: from...
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 the simplicity that I require) except that it...
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 page "Select the languages to install". But use...
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 /usr/local/lib/python2.5/xml/sax ... Compiling...
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 working on creating some decent instructions on how to...
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 to do this and/or can I find out what files it has...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.