buildout

How to pass the class path to ipython's notebook when called from ipzope?

瘦欲@ 提交于 2019-12-11 21:40:00
问题 I've been using iypthon as set from ipzope (buildout) for a while and it works without problems. Now I'm trying to use ipython's notebook and I cannot set it up properly. When I create a new notebook it stops IPython's Kernel with an ImportError (see below). I guess that the created Thread in IPython.html.notebook.start() opens the webbrowser without passing the sys.path from the calling process. My workaround is to add the paths in ipzope to PYTHONPATH . When I add all the paths then ipython

PyCharm doesn't recognize Buildout dependencies

旧巷老猫 提交于 2019-12-11 19:42:48
问题 I have a fairly simple project with Buildout and Django and have imported it into PyCharm. However, even after enabling Buildout support in the project settings, PyCharm complains that it can't find Django. The project, when built from Buildout, works just fine, but PyCharm is not seeing it as a Buildout project properly. Any ideas on how to fix this? 回答1: This probably is a problem because you do not have your interpreters set out straight. Check to see that you have all the dependencies

Buildout can't find the links for the dependecies of Pypi Plone add-ons

一世执手 提交于 2019-12-11 15:14:19
问题 I'm trying to install some add-ons to Plone but buildout can't find the links for the dependencies. I have the following in my buildout.cnfg find-links += http://dist.plone.org/release/5.0.4 http://getpaid.googlecode.com/files/yoma.batching-0.2.2-getpaid.zip And index = https://pypi.python.org/simple/ eggs = Plone Pillow collective.addthis collective.cart.shopping Products.PloneGetPaid When I run bin/buildout I get Getting distribution for 'plone.recipe.zope2instance==4.4.0'. warning: no

Django remote deployment with buildout and Fabric

自闭症网瘾萝莉.ら 提交于 2019-12-11 11:42:51
问题 I am writing a web application using Django, on djangorecipe. I wanted to have an automatic deployment and found out that Fabric would be a perfect solution. I am not sure though, how do you use Fabric in buildout environment. It turned out that the buildout recipes and posts on using Fabric are a bit outdated (ca. 2010). Has anyone tried implementing that? 回答1: Best way to think about it is to treat them as separate. Buildout is for setting everything up, both locally and on the server.

Plone 4 : How to create Multiple Plone Sites

放肆的年华 提交于 2019-12-11 11:09:37
问题 I am using Plone 4 and I need to add another Plone Site in my Zope Instance i.e. One Plone site for testing/development and the other Plone site for production. I already have one Plone site installed and wonder how to install the other in the same instance. I have followed the steps listed here but have not been successful. I am using buildout. Could anyone tell me how to go about it or if I'm doing something wrong. Thanks. EDIT: I am looking for a way that will result in a different Data.fs

buildout can't find pip packages for Plone

喜夏-厌秋 提交于 2019-12-11 06:24:19
问题 I'm trying to add add-ons to Plone through buildout but it can't find the packages. I've tried it in a virtualenv andd the system wide python I followed the set up on the Plone site Setup instructions Every add-on I try brings up the following error Installing instance. /home/a/Plone/zinstance/local/lib/python2.7/site-packages/pkg_resources/__init__.py:192: RuntimeWarning: You have iterated over the result of pkg_resources.parse_version. This is a legacy behavior which is inconsistent with

Add Python arguments in script's shebang line (script made with buildout and zc.recipe.egg:scripts)

不羁的心 提交于 2019-12-10 17:49:50
问题 How to specify arguments for Python when building script with buildout? Here's my buildout.cfg: [buildout] parts = python develop = . [python] recipe = zc.recipe.egg:scripts eggs = myproject And setup.py: from setuptools import setup, find_packages setup( name = 'myproject', packages = find_packages(), entry_points = """ [console_scripts] myscript = myproject:main """, ) I get the following shebang with this configuration: $ pip install . $ head -n1 /usr/local/bin/myscript #!/usr/bin/python

Can you define an entry point in your Plone product to run a script as if it was called by bin/instance run

不羁的心 提交于 2019-12-07 08:39:16
问题 I have a batch job that I need to run occasionally against my Plone instance. It needs access to the code in my Plone product and other Plone code and to query the catalog. I've included the script in my Plone product and currently run it via bin/instance run <path to script in eggs directory> Obviously if a new version of my product comes along I need to change the path to point to the new version of the egg. What I'd like to do is define any entry point for the script in my product's setup

Buildout, psycopg2, postgresql

独自空忆成欢 提交于 2019-12-06 13:09:33
问题 I'm trying to make buildout config that installs psycopg2 egg and postgres from source if needed : parts = ... postgre psycopg2 ... [postgre] recipe = hexagonit.recipe.cmmi url = ftp://ftp3.ua.postgresql.org/pub/mirrors/postgresql/source/v9.0.0/postgresql-9.0.0.tar.gz configure-options = --without-readline [psycopg2] recipe = zc.recipe.egg:custom egg = psycopg2 include-dirs = ${postgre:location}/include library-dirs = ${postgre:location}/lib rpath = ${postgre:location}/lib The problem is that

Trying to get a solid Python install working on my Mac?

跟風遠走 提交于 2019-12-06 07:33:58
问题 I have Mac OSX 10.5.8 with Xcode installed. I want to avoid MacPorts and want to just get a solid Python install foundation so I can then move on to mess with Django and other things. I want to use Buildout with my Python applications. I have installed binary Python 2.6.4 from the official site and installed this. Following other advice I have put this in my ~/.bash_profile file: export PATH=/usr/local/bin:$PATH So, when I do a which python it shows /usr/local/bin/python . And, when I do a