473,804 Members | 2,132 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1634
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.w eb.de>
To: py*********@pyt hon.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...@yah oo.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\pyt hon 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********@yah oo.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_SetProgramNa me 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_Interacti veOne and PyRun_Interacti veLoop 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
3719
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.5.2, and now I have access to all 3 versions. When I tried to do the same on an older machine, however, running Win98 SE (and having had Python 1.5.2 previously installed there), the installation doesn't work: Obvious problems: * IDLE...
1
2435
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 require as a prerequisite SIP and PyQT. As an ordinary user, I recognize my limitations as far as programming. My dilemma is that this stuff is quite difficult and beyond my competence, but I
4
5391
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 called reportlab.pth in the pythod dir. The only line in this file is supposed to be the path to the reportlib dir. Then I'm instructed to open the ... ok I'll close and reopen ... the python cmd line interpreter and type import reportlab
7
3214
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. What happens is that Python 2.4 replaces the /usr/bin/python module with the Python 2.4 version. If I replace /usr/bin/python with the Python 2.3 version executable, which is still on my system, that all the aforesaid modules depend on, they start...
0
1614
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 directly hit our DB2 Z/OS V7 databases. When we originally set up this environment (DB2 V8 FP8) we had to bind the JDBC type 4 drivers using the syntax: java com.ibm.db2.jcc.DB2Binder -url jdbc:db2://(ip address):(port number)/(system name) -user...
14
7162
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 error message is longer than what I send here. % easy_install pysqlite Searching for pysqlite Reading http://cheeseshop.python.org/pypi/pysqlite/ Reading http://pysqlite.org/
1
1252
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 wind up installing packages on both unix and windows machines and often the 'build' part of the install fails with not being able to find the compiler or compile problems. If there are any articles/pointers that talk about this, i.e. how to
5
1687
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 am working on windows platform. please someone give some detailed steps to install those packages in windows platform. This will be helpful. shafi
0
1117
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 site-packages subdirectory. Execute this line to see the list of directories that are currently searched for modules: python -c "import sys; print '\n'.join(sys.path)"
0
2161
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 env New python executable in env/bin/python Installing setuptools........... Complete output from command env/bin/python -c "#!python
0
9595
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10603
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10353
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10099
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9176
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7643
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3836
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3003
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.