Add a convenience shell script to install deps

Bug #941201 reported by Duncan McGreggor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Accomplishments Daemon
Won't Fix
Medium
Duncan McGreggor

Bug Description

The setup.py is generating the following errors during build:

ERROR: Python module twisted.internet not found
ERROR: Python module twisted.internet.protocol not found
ERROR: Python module twisted.python not found
ERROR: Python module ubuntuone.platform.tools not found
ERROR: Python module ubuntuone.couch not found
ERROR: Python module gpgme not found
ERROR: Python module Image not found
ERROR: Python module ImageEnhance not found

The setup.py needs the "install_requires" parameter to be set.

Changed in ubuntu-accomplishments-system:
assignee: nobody → Duncan McGreggor (oubiwann)
status: New → In Progress
Revision history for this message
Duncan McGreggor (oubiwann) wrote :

hrm... I guess the standard Python way of doing this (having setup install things) is in direct conflict with the Ubuntu way (system packages). I'll add a utility function, and see how that works.

Revision history for this message
Duncan McGreggor (oubiwann) wrote :

So, apparently the setup.py script is now a little bit broken. What's more:

 * setup.py won't be used to install dependencies;
 * ultimately, this will be packaged in Ubuntu (or a PPA) and the dependencies will be configured in the .deb file
 * for now, it would be useful to have a script that could install the deps for developers

To that last point, I will re-target this bug, changing the summary from "Missing dependencies in setup.py" to something more reasonable, given this info.

summary: - Missing dependencies in setup.py
+ Add a convenience shell script to install deps
Revision history for this message
Jono Bacon (jonobacon) wrote :

So the way I understand this works is that setup.py allows you to provide some information about the project and when you run 'quickly package' it detects the imports and identifies which package dependencies it has. Again, I think we should see if a Quickly dev can weigh in here to see if Quickly can do this for us.

Changed in ubuntu-accomplishments-system:
status: In Progress → Incomplete
importance: Undecided → Medium
Revision history for this message
Duncan McGreggor (oubiwann) wrote : Re: [Bug 941201] Re: Add a convenience shell script to install deps

On Mon, Mar 5, 2012 at 1:03 AM, Jono Bacon <email address hidden> wrote:
> So the way I understand this works is that setup.py allows you to
> provide some information about the project and when you run 'quickly
> package' it detects the imports and identifies which package
> dependencies it has.

So... the Python packages up on PyPI usually have different names than
the Ubuntu packages. If quickly does support using the "requires"
option to install packages via apt-get, we'll definitely need someone
to clarify the mechanism there ;-) (as you said below).

> Again, I think we should see if a Quickly dev can
> weigh in here to see if Quickly can do this for us.

Revision history for this message
Jono Bacon (jonobacon) wrote :

Previously when I have created Quicky projects the dep checker has known how to map import modules to the correct packages. I mailed Michael Terry to see if he can weigh in on this.

Revision history for this message
Duncan McGreggor (oubiwann) wrote :

On Mon, Mar 5, 2012 at 2:14 PM, Jono Bacon <email address hidden> wrote:
> Previously when I have created Quicky projects the dep checker has known
> how to map import modules to the correct packages.

/me nods

> I mailed Michael
> Terry to see if he can weigh in on this.

Sweet!

d

Jono Bacon (jonobacon)
affects: ubuntu-accomplishments-system → ubuntu-accomplishments-daemon
Revision history for this message
Matt Fischer (mfisch) wrote :

Is this bug still valid since we have a real package now?

Revision history for this message
Duncan McGreggor (oubiwann) wrote :

When writing code for a project, devs often don't have the package in question installed on their systems (so as to prevent source ambiguity). As such, I would imagine that this is still useful.

If there was a *meta* package that just set up deps and other magic, but without actually installing the daemon, library, etc., then there would be no need for the script; the instructions on the wiki for getting a dev env set up easily would include the apt-get install command for the meta package.

Revision history for this message
Duncan McGreggor (oubiwann) wrote :

Or, alternatively, if Quickly has this capability and the deps can be installed via a Quickly subcommand...

Revision history for this message
Jono Bacon (jonobacon) wrote :

I think I am going to mark this as Won't Fix as people can determine the deps either from build-deps or from the build documentation.

Changed in ubuntu-accomplishments-daemon:
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.