[TurboGears] Re: Building from subversion
It might be worth noting that easy_install.py -f . (note the period, i.e. current directory) works. -f can use local paths as well as urls. At work we have MS Proxy (NTLM auth) and McAfee WebShield, so downloading anything is a royal pain. I really like setuptools, but having a download and local install capability is critical in my work environment. That said, I had to write a script to get setuptools installed from a local egg. I will be working on using this knowledge with Inno Setup to make a nice and friendly stand-alone windows installer for my app. It could be used for TG too. Ian, if you are reading this, I'd really love to hear your thoughts on the use of setuptools (and getting setuptools initially installed) without needing a network connection. (Admittedly I am not well versed in eggs as TG is my first real exposure to them. :-) Hope this helps, Krys David Stanek wrote: That is probably better than what I had done. I just grabbed the eggs from the TurboGears download page and since I am on Linux I built a cElementTree egg. Then I wrote a little shell script to set my PATH and PYTHONPATH. David On 10/7/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: YES. I have gone through all these before. setuptools sounds great except that the infrastructure is not there yet. -- David Stanek www.roninds.net http://www.roninds.net
[TurboGears] Re: Building from subversion
first, you need to follow exactly the installation instruction on TurboGears(to kick start a base, could be outdated but doesn't matter). Then you can do your svn upgrade as described above, including any new Kid, Cherrypy, SQLObject etc. TurboGears has a pretty long list of dependencies and they are only available on TurboGears(thus the kick start), not through the generic setuptools mechanism(search through PyPI).
[TurboGears] Re: Building from subversion
On 10/7/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: first, you need to follow exactly the installation instruction on TurboGears(to kick start a base, could be outdated but doesn't matter). Then you can do your svn upgrade as described above, including any new Kid, Cherrypy, SQLObject etc. TurboGears has a pretty long list of dependencies and they are only available on TurboGears(thus the kick start), not through the generic setuptools mechanism(search through PyPI). Ah, I had blown away my turbogears 0.5.1 version because I had received an error about Kid being an older version. So, should I have done an upgrade instead? If so, how? Thanks again, - Bill -- Bill Woodward [EMAIL PROTECTED] http://www.saifa.net I have more trouble with D. L. Moody than with any other man I ever met. -- D. L. Moody s/D. L. Moody/Bill Woodward/g
[TurboGears] Re: Building from subversion
On 10/7/05, David Stanek [EMAIL PROTECTED] wrote: That is probably better than what I had done. I just grabbed the eggs from the TurboGears download page and since I am on Linux I built a cElementTree egg. Then I wrote a little shell script to set my PATH and PYTHONPATH. Well, I'm still working on trying to get my TurboGears upgraded. I have re-installed the 0.5.1 version, then checked out the latest subversion source, gone into the thirdparty directories and run 'python setup.py install' in each of them (excepy for mochikit). Then I pop back to the 'turbogears' directory, where I checked out the subversion trunk, and run 'python setup.py install'. I get a ValueError exeception containing the text: ValueError: (Missing 'Version:' header and/or PKG-INFO file, TurboGears [unknown version] (c:\documents and settings\william_woodward\turbogears)) Now, I could swear that I did not get this error this morning. Perhaps something was removed in the latest checkin? Where should I be looking for a 'Version:' header or a 'PKG-INFO' file? Thanks again, - Bill -- Bill Woodward [EMAIL PROTECTED] http://www.saifa.net I have more trouble with D. L. Moody than with any other man I ever met. -- D. L. Moody s/D. L. Moody/Bill Woodward/g
[TurboGears] Re: Building from subversion
On 10/7/05, Bill Woodward [EMAIL PROTECTED] wrote: ValueError: (Missing 'Version:' header and/or PKG-INFO file, TurboGears [unknown version] (c:\documents and settings\william_woodward\turbogears)) Now, I could swear that I did not get this error this morning. Perhaps something was removed in the latest checkin? Where should I be looking for a 'Version:' header or a 'PKG-INFO' file? So, it looks like maybe the PKG-INFO file, plus several other files, were removed form the TurboGears.egg-info/ directory in revision 44. The comments in the rev show that it was intentional, but it seems to be causing me trouble. Am I missing a step to create the egg info? Any clues? -- Bill Woodward [EMAIL PROTECTED] http://www.saifa.net I have more trouble with D. L. Moody than with any other man I ever met. -- D. L. Moody s/D. L. Moody/Bill Woodward/g
[TurboGears] Re: Building from subversion
On 10/7/05, Bill Woodward [EMAIL PROTECTED] wrote: On 10/7/05, Bill Woodward [EMAIL PROTECTED] wrote: ValueError: (Missing 'Version:' header and/or PKG-INFO file, TurboGears [unknown version] (c:\documents and settings\william_woodward\turbogears)) Now, I could swear that I did not get this error this morning. Perhaps something was removed in the latest checkin? Where should I be looking for a 'Version:' header or a 'PKG-INFO' file? So, it looks like maybe the PKG-INFO file, plus several other files, were removed form the TurboGears.egg-info/ directory in revision 44. The comments in the rev show that it was intentional, but it seems to be causing me trouble. Am I missing a step to create the egg info? Yeah, that was intentional, because it was causing conflicts having them there. Luckily, you can just run python setup.py egg_info to get them back. By the way, CherryPy in the thirdparty directory does not use setuptools. You need to alter the setup.py to replace from distutils.core import setup with from setuptools import setup Kevin -- Kevin Dangoor Author of the Zesty News RSS newsreader email: [EMAIL PROTECTED] company: http://www.BlazingThings.com blog: http://www.BlueSkyOnMars.com
[TurboGears] Re: Building from subversion
On 10/7/05, Kevin Dangoor [EMAIL PROTECTED] wrote: On 10/7/05, Bill Woodward [EMAIL PROTECTED] wrote: So, it looks like maybe the PKG-INFO file, plus several other files, were removed form the TurboGears.egg-info/ directory in revision 44. The comments in the rev show that it was intentional, but it seems to be causing me trouble. Am I missing a step to create the egg info? Yeah, that was intentional, because it was causing conflicts having them there. Luckily, you can just run python setup.py egg_info to get them back. OK, I did that, but I had to remove the TurboGear.egg-info/ directory to get it to work. By the way, CherryPy in the thirdparty directory does not use setuptools. You need to alter the setup.py to replace from distutils.core import setup with from setuptools import setup Cool. I'll check that. When I was running 'setup.py install' in the top-level turbogears source directory, I was getting the CherryPy version as a missing prereq. Maybe that's why. Thanks again! -- Bill Woodward [EMAIL PROTECTED] http://www.saifa.net I have more trouble with D. L. Moody than with any other man I ever met. -- D. L. Moody s/D. L. Moody/Bill Woodward/g
[TurboGears] Re: Building from subversion
On 10/7/05, Bill Woodward [EMAIL PROTECTED] wrote: Good morning, I've downloaded the latest (I think) version of TurboGears via subversion (svn co http://www.turbogears.org/svn/turbogears/trunk turbogears), and I go to build the development version, as detailed on http://www.turbogears.org/community/contributing.html, by running: OK, I'm still working on this, but here are the steps I'm taking: 1) Blow away the python install dir/Lib/site-packages/whatever directories for all of the TurboGears components 2) Run 'python ez_setup.py -f http://www.turbogears.org/download/index.html TurboGears' to install the 0.5.1 version of turbogears 3) Run ' svn co http://www.turbogears.org/svn/turbogears/trunk turbogears' to check out the turbogears source 4) cd into the 'turbogears' directory and remove the 'TurboGears.egg-info' directory. 5) Run 'python ez_setup.py' to get the latest setuptools. 6) Run 'python setup.py egg_info' to recreate the 'TurboGears.egg-info' directory. 7) cd to 'turbogears/thirdparty/formencode' and run 'python setup.py install' 8) cd to 'turbogears/thirdparty/sqlobject' and run 'python setup.py install' 9) cd to 'turbogears/thirdparty/kid' and run 'python setup.py install' 10) cd to 'turbogears/thirdparty/cherrypy' and edit 'setup.py' to replace the line from distutils.core import setup with from setuptools import setup. Now run 'python setup.py install' 11) cd to 'turbogears' and run 'python setup.py install' 12) In the toplevel 'turbogears' source directory, edit 'setup.cfg' and comment out the 'copydirs' line. 13) Now, run 'python setup.py docs' to generate the TurboGears documentation (which was what led me down this path in the first place :) ) Whew! All done! Thanks to everyone for all the help. -- Bill Woodward [EMAIL PROTECTED] http://www.saifa.net I have more trouble with D. L. Moody than with any other man I ever met. -- D. L. Moody s/D. L. Moody/Bill Woodward/g
[TurboGears] Re: Building from subversion
On 10/7/05, Bill Woodward [EMAIL PROTECTED] wrote: Whew! All done! Thanks to everyone for all the help. I'm sure some portion of that can be automated :) Have a good time in Germany! Kevin -- Kevin Dangoor Author of the Zesty News RSS newsreader email: [EMAIL PROTECTED] company: http://www.BlazingThings.com blog: http://www.BlueSkyOnMars.com