I find I need to explicitly set the HOME and PATH, in order to assure it goes the right place. I've made a script "py20" #!/bin/sh export PYTHONHOME=/usr/local export PYTHONPATH=/usr/local/lib/python2.0:\ /usr/local/lib/python2.0/site-packages /usr/local/bin/python2.0 $@ Then PyXML builds and installs ok with: py20 setup.py build py20 setup.py install "Noel Rappin" <noel.rappin at openwave.com> writes: > Attempting to install PyXML on a machine where Python2.0 is not in a > standard location, I got the following error while running setup.py build: > > ======== > File "setup.py", line 218, in ? > scripts = ['scripts/xmlproc_parse', 'scripts/xmlproc_val'] > File "/nfs/home/nrappin/Python-2.0/Lib/distutils/core.py", line 138, in > setup > dist.run_commands() > File "/nfs/home/nrappin/Python-2.0/Lib/distutils/dist.py", line 829, in > run_commands > self.run_command(cmd) > File "/nfs/home/nrappin/Python-2.0/Lib/distutils/dist.py", line 849, in > run_command > cmd_obj.run() > File "/nfs/home/nrappin/Python-2.0/Lib/distutils/command/build.py", line > 106, in run > self.run_command(cmd_name) > File "/nfs/home/nrappin/Python-2.0/Lib/distutils/cmd.py", line 328, in > run_command > self.distribution.run_command(command) > File "/nfs/home/nrappin/Python-2.0/Lib/distutils/dist.py", line 849, in > run_command > cmd_obj.run() > File "/nfs/home/nrappin/Python-2.0/Lib/distutils/command/build_ext.py", > line 200, in run > customize_compiler(self.compiler) > File "/nfs/home/nrappin/Python-2.0/Lib/distutils/sysconfig.py", line 106, > in customize_compiler > (cc, opt, ccshared, ldshared, so_ext) = \ > File "/nfs/home/nrappin/Python-2.0/Lib/distutils/sysconfig.py", line 368, > in get_config_vars > func() > File "/nfs/home/nrappin/Python-2.0/Lib/distutils/sysconfig.py", line 280, > in _init_posix > raise DistutilsPlatformError, my_msg > distutils.errors.DistutilsPlatformError: invalid Python installation: unable > to open /usr/local/lib/python2.0/config/Makefile (No such file or directory) > ========= > > The weird thing about this is that even were Python in /user/local/lib, the > directory is a) capitalized, and b) there is no /config/Makefile. > > Does anybody have any ideas as to what I'm missing? > > Noel > > ------------- > Noel Rappin > Openwave > Principal Software Engineer, Internal Development > Noel.Rappin at openwave.com > (781) 274-7000 x305 > > The contents of this email message do not necessarily reflect the opinions > or programming practices of Openwave Systems > > > > > -- Harry George E-mail: harry.g.george at boeing.com The Boeing Company Renton: (425) 237-6915 P. O. Box 3707 02-CA Everett: (425) 266-3868 Seattle, WA 98124-2207 Page: (425) 631-8803
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4