473,403 Members | 2,366 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,403 software developers and data experts.

Re: Python / Debian package dependencies

Hi Stephane,

thanks for your reply! :-)

I do not get any notification or warning or whatever from dpkg, all
output I get when running
# sudo dpkg -i python-<package name>_0.0.1-4927-1_all.deb
is
Selecting previously deselected package python-<package name>.
(Reading database ... 15026 files and directories currently installed.)
Unpacking python-<package name(from python-<package
name>_0.0.1-4927-1_all.deb) ...
Setting up python-<package name(0.0.1-4927-1) ...

And my <package namepackage itself does get installed, but the
'psycopg2' and 'setuptools' packages it depends on do not get
installed...

How would I install a package with apt-get if I don't have it in the
repository, but only have a local .deb file ?

Cheers,

Steve
2008/11/20 Stephane Bulot <st******@bulot.org>:
Hi Steven,
This is a normal behaviour for dpkg. If there is a failing dependancy, dpkg
will not install dependancies, it will notify only and will not install the
package. Dependancies installations are managed by the front-end to dpkg
(aptitude or apt). This is not a python issue that you are facing to.
Cheers
Stephbul

2008/11/20 Steven Samuel Cole <st****************@gmail.com>
>>
Hi all,

I am trying to build a debian package for my python modules using
stdeb and dpkg-buildpackage. The package building itself works, I also
managed to have an entry point created and I can use my python modules
on the Ubuntu virtual machine I use to test the package.

The problem is that my modules require the psycopg2 python package and
the entry point seems to require setuptools.
I can't figure out how to declare a dependency that actually results
in the dependency Debian packages being installed.
I tried adding these lines to setup.py:

requires = ['psycopg2', 'setuptools'],
requires = ['psycopg2 (>=0.1)', 'setuptools (>=0.1)'],
install_requires = ['psycopg2', 'setuptools'],
install_requires = ['psycopg2>=0.1', 'setuptools>=0.1'],

and then run stdeb_run_setup and dpkg-buildpackage -rfakeroot -uc -us
in the deb_dist/<package namefolder created, but when I copy the
.deb file over to the virtual machine and do dpkg -i <.deb file>, none
of them would actually install psycopg2 and setuptools.

What am I doing wrong ? Am I actually somewhat on the right track or
am I doing complete nonsense ?

Thanks for your help!

Cheers,

Steve
--
http://mail.python.org/mailman/listinfo/python-list

Nov 21 '08 #1
0 1889

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

Similar topics

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...
29
by: Stephen Ferg | last post by:
I am a very satisfied user of Python and have been for number of years. I would never willing use another language. I wish all good things for Python, and that moves me to express some thoughts...
35
by: Michael Kearns | last post by:
I've been using python to write a simple 'launcher' for one of our Java applications for quite a while now. I recently updated it to use python 2.4, and all seemed well. Today, one of my...
4
by: Fabian Braennstroem | last post by:
Hi, I am pretty new to python and will use it mainly in combination with scientific packages. I am running ubuntu breezy right now and see that some packages are out of date. Do you have any...
1
by: bruce | last post by:
hi. i'min a situation where i might need to upgrade python. i have the current version of python for FC3. i might need to have the version for FC4. i built the version that's on FC4 from the...
2
by: Rustom Mody | last post by:
Ive been trying to compile python 3000 on debian etch And on running test I get: 4 skips unexpected on linux2: test_tcl test_dbm test_ssl test_bsddb Can someone tell me what packages I am...
19
by: Joseph Turian | last post by:
How widely adopted is python 2.5? We are doing some development, and have a choice to make: a) Use all the 2.5 features we want. b) Maintain backwards compatability with 2.4. So I guess the...
1
by: Steven Samuel Cole | last post by:
Hi all, I am trying to build a debian package for my python modules using stdeb and dpkg-buildpackage. The package building itself works, I also managed to have an entry point created and I can...
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.