python - how to force buildout to use already installed package -


on server, disk optimization, not install c compiler, , here problem :

i want install 'spur' python package buildout 2.3.1, spur using pycrypto requires c compiler.

to avoid compilation, installed on server (suse 11sp2) rpm python-pycrypto (python-pycrypto-2.6-31.7.x86_64.rpm). can check 'pip freeze' pycrypto installed :

pip freeze   lxml==2.1.2 mod-python==3.3.1 numeric==24.2 numpy==1.3.0 pycrypto==2.6 pywbem==0.7.0 pyxml==0.8.4 

nevertheless, when start buildout, still tries build pycrypto c compiler not exist.

so added include-site-packages = true , allowed-eggs-from-site-packages = pycrypto in buildout.cfg, not taken in account. tried :

python bootstrap.py --allow-site-packages bin/buildout 

but did not too.

what can avoid buildout compile package compiled , installed rpm ?

here buildout.cfg

[buildout] newest = false extensions = gp.vcsdevelop develop-dir = src parts = eggs tests wsgi include-site-packages = true allowed-eggs-from-site-packages = pycrypto  eggs =     django==1.4.8     ordereddict     ipython==0.13.2     django-webtest     django-grappelli<2.5.0     django-bootstrap3-datetimepicker     z3c.recipe.usercrontab     rrdgraphs     south     achilterm     pynag     pyaml<14     djangodevkit==1.0.3     sphinx     xlwt     xlrd     spur  ... 

and logs :

# bin/buildout unused options buildout: 'allowed-eggs-from-site-packages' 'include-site-packages'. installing eggs. getting distribution 'pycrypto!=2.4,>=2.1'. configure: error: in `/tmp/easy_install-qfxca_/pycrypto-2.6.1': configure: error: no acceptable c compiler found in $path see `config.log' more details traceback (most recent call last):   file "<string>", line 1, in <module>   file "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 2254, in main    file "/usr/lib64/python2.6/distutils/core.py", line 152, in setup     dist.run_commands()   file "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands     self.run_command(cmd)   file "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command     cmd_obj.run()   file "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 380, in run    file "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 610, in easy_install    file "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 659, in install_item    file "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 842, in install_eggs    file "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 1070, in build_and_install    file "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 1056, in run_setup    file "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 240, in run_setup   file "/usr/lib64/python2.6/contextlib.py", line 34, in __exit__     self.gen.throw(type, value, traceback)   file "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 193, in setup_context   file "/usr/lib64/python2.6/contextlib.py", line 34, in __exit__     self.gen.throw(type, value, traceback)   file "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 164, in save_modules   file "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 139, in resume   file "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 152, in save_modules   file "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 193, in setup_context   file "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 237, in run_setup   file "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 267, in run   file "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 236, in runner   file "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 46, in _execfile   file "/tmp/easy_install-qfxca_/pycrypto-2.6.1/setup.py", line 456, in <module>   file "/usr/lib64/python2.6/distutils/core.py", line 152, in setup     dist.run_commands()   file "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands     self.run_command(cmd)   file "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command     cmd_obj.run()   file "build/bdist.linux-x86_64/egg/setuptools/command/bdist_egg.py", line 160, in run   file "build/bdist.linux-x86_64/egg/setuptools/command/bdist_egg.py", line 146, in call_command   file "/usr/lib64/python2.6/distutils/cmd.py", line 333, in run_command     self.distribution.run_command(command)   file "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command     cmd_obj.run()   file "build/bdist.linux-x86_64/egg/setuptools/command/install_lib.py", line 10, in run   file "/usr/lib64/python2.6/distutils/command/install_lib.py", line 112, in build     self.run_command('build_ext')   file "/usr/lib64/python2.6/distutils/cmd.py", line 333, in run_command     self.distribution.run_command(command)   file "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command     cmd_obj.run()   file "/tmp/easy_install-qfxca_/pycrypto-2.6.1/setup.py", line 251, in run   file "/usr/lib64/python2.6/distutils/cmd.py", line 333, in run_command     self.distribution.run_command(command)   file "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command     cmd_obj.run()   file "/tmp/easy_install-qfxca_/pycrypto-2.6.1/setup.py", line 278, in run runtimeerror: autoconf error error occurred when trying install pycrypto 2.6.1. above message errors output easy_install. while:   installing eggs.   getting distribution 'pycrypto!=2.4,>=2.1'. error: couldn't install: pycrypto 2.6.1 

i found workaround :

i created egg-link file develop-eggs dir :

$ cat develop-eggs/pycrypto.egg-link  /usr/lib64/python2.6/site-packages 

Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -