bugBKChem - Bugs: bug #30654, Setup fails when installing from...

 
 

bug #30654: Setup fails when installing from git repos.

Submitted by:  None
Submitted on:  Thu 05 Aug 2010 06:57:19 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Works For Me
Privacy: PublicAssigned to: Reinis Danne <abadar>
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 09 Aug 2010 08:45:23 AM UTC, comment #1:

You should use Git submodules as described here:
http://bkchem.zirael.org/arch_en.html

Use these commands to get the repository:

>$ git clone git://gitorious.org/bkchem/bkchem.git
>$ cd bkchem
>$ git submodule init
>$ git submodule update


This will download all needed files in appropriate directory structure. Then just execute the setup as usual, that will set up also OASA. You can also run BKChem directly from your repository, no need to install it:

>$ python bkchem/bkchem.py


This is the preferred way of using BKChem from development sources. BKChem releases which will have corresponding versions of OASA released will have adjusted setup.py and they will require separate installation of OASA.

Reinis Danne <abadar>
Project AdministratorIn charge of this item.
Thu 05 Aug 2010 06:57:19 AM UTC, original submission:

After removing an older BKChem version installed via Ubuntu 10.04 into a Python2.6 environment I cloned the oasa, bkchem, bkchem-plugins, and piddle from Gitorious:
git://gitorious.org/oasa/oasa.git
git://gitorious.org/bkchem/bkchem.git
git://gitorious.org/bkchem/bkchem-plugins.git
git://gitorious.org/bkchem/piddle.git

In the oasa directory I executed, as per the usual:
python setup.py install --prefix=/usr/local/

No errors were detected and import oasa worked fine.

In the bkchem directory I executed, as per the usual:
python setup.py install --prefix=/usr/local/

This gave the following error:
package init file 'bkchem/oasa/__init__.py' not found (or not a regular file)
error: package directory 'bkchem/oasa/oasa' does not exist

The bkchem setup.py file packages = line contains bkchem/oasa/oasa even though this directory does not exist in the git repo (although the oasa directory does, but is blank).

Upon removal of the 'bkchem/oasa/oasa' and 'bkchem/oasa/oasa/graph' packages no errors were encountered in setup.py

To make the setup.py more general it could either check for the existence of the oasa directory in the bkchem package or see if oasa imports and is a compatible version.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #21145:  setup_patch added by None (718B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by abadar (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 09 Aug 2010 08:45:23 AM UTCabadarStatusNone=>Works For Me
      PrivacyPrivate=>Public
      Assigned toNone=>abadar
    Thu 05 Aug 2010 06:57:19 AM UTCNoneAttached File-=>Added setup_patch, #21145

    Back to the top


    Powered by Savane 3.1-cleanup