473,387 Members | 1,859 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,387 software developers and data experts.

Installing packages

I'm new to Python, and just downloaded Py2.6. I also want to use Nose. So I downloaded the latest sources, but it's not at all clear what's the best way to put this stuff into the Python package system. Nose supports easy_install, easy_install doesn't have an installer for Windows and Py2.6, so I think I can't use that. (It only does 2.5 and earlier. (Should I go to Py2.5? Is there more support out there for that?)).
Alan Baljeu
__________________________________________________ ________________
Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com
Nov 13 '08 #1
4 1605
Alan Baljeu schrieb:
I'm new to Python, and just downloaded Py2.6. I also want to use Nose. So I downloaded the latest sources, but it's not at all clear what's the best way to put this stuff into the Python package system. Nose supports easy_install, easy_install doesn't have an installer for Windows and Py2.6, so I think I can't use that. (It only does 2.5 and earlier. (Should I go to Py2.5? Is there more support out there for that?)).
2.6 is most probably a bit to fresh.

I'd go for 2.5.
Diez
Nov 13 '08 #2
Thanks, I have 2.5 now and it works great with Nose. Now for my next project, I want to embed Python and Nose in a C++ program. I know this means using the python25.dll, and I know how to setup the calls.
I think though I will not be installing Python on target systems, so I don't want to rely on sys.path including "site-install". I would have a directory with appropriate python files, a subdir for nose, and keep those relative to the application dir.

For the Python interpreter, two questions:
1. What is the best way to manage the import paths?
2. How can I invoke an interactive console for this embedded python? I'd like to play with things while my app is running.

----- Original Message ----
From: Diez B. Roggisch <de***@nospam.web.de>
To: py*********@python.org
Sent: Thursday, November 13, 2008 2:41:03 PM
Subject: Re: Installing packages

Alan Baljeu schrieb:
I'm new to Python, and just downloaded Py2.6. I also want to use Nose. So I downloaded the latest sources, but it's not at all clear what's the best way to put this stuff into the Python package system. Nose supports easy_install, easy_install doesn't have an installer for Windows and Py2.6, so I think I can't use that. (It only does 2.5 and earlier. (Should I go to Py2.5? Is there more support out there for that?)).
2.6 is most probably a bit to fresh.

I'd go for 2.5.
__________________________________________________ ________________
Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com
Nov 13 '08 #3
On Nov 13, 2:25*pm, Alan Baljeu <alanbal...@yahoo.comwrote:
I'm new to Python, and just downloaded Py2.6. *I also want to use Nose.*So I downloaded the latest sources, but it's not at all clear what's the best way to put this stuff into the Python package system. *Nose supports easy_install, easy_install doesn't have an installer for Windows and Py2..6, so I think I can't use that. *(It only does 2.5 and earlier. *(Should I go to Py2.5? *Is there more support out there for that?)). *

Alan Baljeu
You are the second poster today concerned about the lack of setuptools
for Py2.6
All you have to do is download the setuptools source and run:
C:\Python26\python setup.py install

You'll need a compatible compiler (Visual Studio Express 2008 works
fine) but if you're running Python on Windows you should have that
anyway or you'll forever be at the mercy of the packagers.
Nov 13 '08 #4
En Thu, 13 Nov 2008 19:41:44 -0200, Alan Baljeu <al********@yahoo.com>
escribió:
Thanks, I have 2.5 now and it works great with Nose. Now for my next
project, I want to embed Python and Nose in a C++ program. I know this
means using the python25.dll, and I know how to setup the calls.
I think though I will not be installing Python on target systems, so I
don't want to rely on sys.path including "site-install". I would have a
directory with appropriate python files, a subdir for nose, and keep
those relative to the application dir.

For the Python interpreter, two questions:
1. What is the best way to manage the import paths?
If you mimic a tipical Python installation layout in your application
(don't have to include everything, only what you need) and you call
Py_SetProgramName at the very beginning of your program, then the default
rules for building sys.path will work.
(Mmm, I can't find out where exactly those rules are explained).
2. How can I invoke an interactive console for this embedded python?
I'd like to play with things while my app is running.
Looks like PyRun_InteractiveOne and PyRun_InteractiveLoop should work for
you, but I've never used them.

--
Gabriel Genellina

Nov 15 '08 #5

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

Similar topics

1
by: Rami A. Kishek | last post by:
Please help! Very strange installation problem. First, let me say I successfully installed and use Python 2.2.3 and 2.3 from the EXE binaries on a win ME machine. That machine previously had...
1
by: Benjamin Sher | last post by:
Dear friends: I would appreciate your help in installing SIP with QT support so that I can then install PyQT. My reason is that I would like to install a number of KDE applications that...
4
by: Active8 | last post by:
I did this once and can't remember how <blush> so I read the reportlab user guid. It says to unzip the reportlab archive - this is on w2k, BTW, with Python23 - to a directory and make a file...
7
by: Edward Diener | last post by:
I can install Python 2.4 on the Fedora 3 Linux system, but after I do a number of Linux utilities and commands, like yum, stop working because they were dependent on the Python 2.3 installation....
0
by: klh | last post by:
We just installed DB2 ESE V8 FP12 on our Windows 2003 servers. We also installed the DB2 ADMCL V8 FP12 on our websphere servers. We use the JDBC Type 4 drivers on our websphere servers to...
14
by: Nader Emami | last post by:
I have installed "TurboGears" and I would install 'pysqlite' also. I am a user on a Linux machine. If I try to install the 'pysqlite' with 'easy_install' tool I get the next error message. The...
1
by: owl | last post by:
I love easy_install. I love watching it search and complete. It's when it doesn't complete that causes me grief. I don't program a lot these days and am relatively new to python but I often...
5
by: mdshafi01 | last post by:
Hello , please can anyone help me in installing perl packages. I want to install some packages but i do not know those steps. i have received some .gz files i want to install this perl. But i...
0
by: Gabriel Genellina | last post by:
En Thu, 10 Jul 2008 14:02:29 -0300, Bhagwat Kolde <bbkolde@gmail.com> escribi�: If it is a single Python module, you can put it anywhere in the Python path. A good place may be the...
0
by: trihaitran | last post by:
I am reading chapter two of the Pylons book. In the text I am told to run: $ python virtualenv.py --no-site-packages env This is what I got back: $ python virtualenv.py --no-site-packages...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.