Re: BitPim 0.9.13 now available for initial checkout

Sean Burke <[email protected]>
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <[email protected]>
Sure Tim.  I will break things down as they are listed on the developer 
page.

Setup for building Bitpim.app on OS X 10.4.9
1) Python.  Use the default python installation.  Check the version 
with: >python -V.   You should get 2.3.5.  If you get 2.4.x or 2.5.x,  
then you have probably downloaded one of the precompiled packages from 
macPython.  Check the site for instructions on how to make 2.3.5 the 
"Current" version.

2) Install wxPython.  You MUST have 2.6.3.3 installed.  I tried it will 
2.8.1.1 with mixed results. Also, I had a 2.7 version installed that 
fouled up the build as well.  If you can, make the 2.6 version the only 
version on your machine. Go to: 
http://www.wxpython.org/download-2.6.3.3.php and download the unicode 
version. After installing the package, call python and check your version:
 >python
 >>>>import wx
 >>>> print wx.VERSION[:4]
(you should get: (2, 6, 3, 3))
Ctrl-D

3) pyserial.  Download v2.2 from http://pyserial.sourceforge.net/ and 
install it.  (standard python module commands: python setup.py install)

4) APSW. 
    a) Download, configure, make, make install sqlite3. 
(http://www.sqlite.org/) APSW will not build without it. I used 3.3.13.
    b) Download and install APSW according the standard python setup. 
(http://initd.org/tracker/pysqlite/wiki/APSW).  I used 3.3.13-r1.
    (email me if you are still having problems)

5) paramiko.  Joe just upgraded the package to take the most recent 
(1.7) version.  Download it and install (standard python module 
commands: python setup.py install). 

6) pycrypto. Same as the other modules.  Get it at: 
http://www.amk.ca/python/code/crypto.html .

7) Install py2app v 0.3.6.  http://cheeseshop.python.org/pypi/py2app/

8) Get bitpim source from svn: svn co 
https://bitpim.svn.sourceforge.net/svnroot/bitpim/trunk/bitpim
    Unless Joe adopts the the changes I offered earlier, you will have 
to hand edit the file "buildrelease/makedist.py".  After line 411, add 
the line:

                         'PyResourcePackages': 
['lib/python2.3/lib-dynload'],
And change the line that WAS 465 but is now 466 from "expect = '0.2'" to 
"expect = '0.3.6'".  The code will not compile under py2app 0.2.

9) Build modules: python packaging/buildmodules.py

10) Build application.  For some reason, it only works as root.  Not as 
a normal user, not as a sudoer.
    su
    python buildrelease/makedist.py

That's all I can recall right now.  I DO remember that I had a bear of a 
time getting apsw up until I finally built sqlite3 from source.  It is 
an implicit requirement.

Hope that helps.  Please post any build errors, either for APSW or for 
the mac build to the list.  Chances are good that I have already run 
into them.

Sean



T Gallagher wrote:
> Sean,
>
> Any chance you could document how you got this working? 
>
> I tried getting it going, but kept getting errors with the apsw module. 
>
> Thanks,
>
> Tim
>
> On 3/15/07, *Sean Burke* <[email protected] 
> <mailto:[email protected]>> wrote:
>
>     Thanks for the link, T Gallagher.  I have spent the afternoon
>     making my installation a little more honest (as far as version
>     numbers go).  I have everything at the correct version with the
>     exception of py2app.  Try as I may, bitpim will not compile with
>     0.2.  I upgraded to 0.3.6 (most recent) and was able to get a
>     working copy.  Additionally, I had to add a line specifically
>     locating the  resources for py2app to generate the proper
>     Info.plist.  All of this is used only for the mac builds, so it
>     adding it should not adversely affect the main distribution.  Here
>     is the diff for the two trivial changes:
>
>     412d411
>     <                                               
>     'PyResourcePackages': ['lib/python2.3/lib-dynload'],
>     466c465
>     <         expect='0.3.6'
>     ---
>     >         expect='0.2'
>
>     With that, I have a working copy that is ready for testing.
>
>     Sean
>
>
>
>
>     T Gallagher wrote:
>>     How about getting wxPython from here:
>>
>>     http://www.wxpython.org/download-2.6.3.3.php
>>
>>
>>     On 3/15/07, * Sean Burke* <[email protected]
>>     <mailto:[email protected]>> wrote:
>>
>>         I am running on 10.4.   If you have been tracking the other
>>         thread, you
>>         know I haven't been using the correct dependencies.  I am
>>         trying to
>>         track down the proper versions of each, instead of the most
>>         recent.  I
>>         will post in excruciating detail as soon I get my
>>         dependencies together.
>>
>>         sean
>>
>>         John O'Shaughnessy wrote:
>>         > Great Progress Sean!
>>         >
>>         > Are  you attempting your build on OS X 10.3 or 10.4?
>>         >
>>         > I used to be able to build BitPim just fine on 10.3, but
>>         never had
>>         > luck after upgrading to 10.4.
>>         >
>>         > John
>>         >
>>         >
>>         > On Mar 14, 2007, at 9:11 PM, Sean Burke wrote:
>>         >
>>         >> Joe,
>>         >> Definitely willing and committed.  All of the adjustments
>>         arose from not
>>         >> being able to track down the correct dependency version
>>         numbers. In most
>>         >> cases, they were trivial updates however for the case of
>>         wxPython, it
>>         >> was a major version change (2.6.3->2.8.1).
>>         >
>>         >
>>
>>         -------------------------------------------------------------------------
>>         Take Surveys. Earn Cash. Influence the Future of IT
>>         Join SourceForge.net 's Techsay panel and you'll get the
>>         chance to share your
>>         opinions on IT & business topics through brief surveys-and
>>         earn cash
>>         http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>         <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>>         _______________________________________________
>>         BitPim-devel mailing list
>>         [email protected]
>>         <mailto:[email protected]>
>>         https://lists.sourceforge.net/lists/listinfo/bitpim-devel
>>
>>
>>     ------------------------------------------------------------------------
>>
>>     -------------------------------------------------------------------------
>>     Take Surveys. Earn Cash. Influence the Future of IT
>>     Join SourceForge.net's Techsay panel and you'll get the chance to share your
>>
>>     opinions on IT & business topics through brief surveys-and earn cash
>>
>>     http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>>     ------------------------------------------------------------------------
>>
>>     _______________________________________________
>>     BitPim-devel mailing list
>>     [email protected]
>>      <mailto:[email protected]>
>>     https://lists.sourceforge.net/lists/listinfo/bitpim-devel
>>       
>
>     -------------------------------------------------------------------------
>     Take Surveys. Earn Cash. Influence the Future of IT
>     Join SourceForge.net's Techsay panel and you'll get the chance to
>     share your
>     opinions on IT & business topics through brief surveys-and earn cash
>     http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>     <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>     _______________________________________________
>     BitPim-devel mailing list
>     [email protected]
>     <mailto:[email protected]>
>     https://lists.sourceforge.net/lists/listinfo/bitpim-devel
>     <https://lists.sourceforge.net/lists/listinfo/bitpim-devel>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ------------------------------------------------------------------------
>
> _______________________________________________
> BitPim-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bitpim-devel
>   

-- 
Sean Patrick Burke
Imaging Analysis Specialist
Albert Einstein College of Medicine
Yeshiva University


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.