buildout

Better resources to learn buildout

夙愿已清 提交于 2019-12-31 09:03:04
问题 I am trying to grasp a bit more of buildout with this tutorial, but unlike a tutorial, it seems like a cut and paste of presentation slides. I don't have a really clear idea of what the purpose of buildout is, and how it positions itself with scons and setuptools. Would you be so kind to provide details on these issues? Thanks! 回答1: I quite like the Plone Buildout Tutorial. It gives a reasonable overview of how it all works and the ways in which you can extend a simple buildout file. Here is

auth_user error with Django 1.8 and syncdb / migrate

两盒软妹~` 提交于 2019-12-31 08:55:09
问题 When upgrading to Django 1.8 (with zc.buildout) and running syncdb or migrate, I get this message: django.db.utils.ProgrammingError: relation "auth_user" does not exist One of my models contains django.contrib.auth.models.User: user = models.ForeignKey( User, related_name='%(app_label)s_%(class)s_user', blank=True, null=True, editable=False ) Downgrading to Django 1.7 removes the error. Do I have to include the User object differently in Django 1.8? 回答1: I fix this by running auth first, then

Replicating/reproducing the Django development environment

蓝咒 提交于 2019-12-31 02:06:16
问题 I am working with my friends on a Django project. The project has dependencies on some python modules. I have django and those additional dependencies installed inside a virtualenv. The code of the django project is in a repository accessible to all the friends who can checkout/clone and then contribute code to it. But is there a way to replicate the setup that I have in my development environment in my friends' computers, i.e., something that will install all the additional dependencies and

How to tell Buildout to install a egg from a URL (w/o pypi)

早过忘川 提交于 2019-12-30 19:04:07
问题 I have some egg accessible as a URL, say http://myhosting.com/somepkg.egg . Now I don't have this somepkg listed on pypi. How do I tell buildout to fetch and install it for me. I have tried a few recipes but no luck so far. TIA 回答1: You should just be able to add a 'find-links' option to your [buildout] section within the buildout.cfg file. I just tested this internally with the following buildout.cfg. [buildout] find-links = http://buildslave01/eggs/hostapi.core-1.0_r102-py2.4.egg parts =

Install wxpython using buildout and virtualenv

荒凉一梦 提交于 2019-12-25 01:07:30
问题 I want to have a repeatable and isolated install for a wxpython project on linux , so i thought that using virtualenv + buildout would be the way to go. Is there a buildout recipe available for this? The link install wxpython in buildout seems to be gone :( 回答1: That link works for me. Maybe it was just down temporarily. 来源: https://stackoverflow.com/questions/5415930/install-wxpython-using-buildout-and-virtualenv

Installing certain packages using virtualenv

萝らか妹 提交于 2019-12-24 03:25:46
问题 So, I want to start using virtualenv this year. I like the no-site-packages option, that is nice. However I was wondering how to install certain packages into each virtualenv. For example, lets say I want to install django into each virtualenv... is this possible, and if so, how? Does buildout address this? Well it's not so much django, more like the django applications... I dont mind installing a version of django into each virtualenv... i was just wondering if there was some intermediate

Having “Exception Value: The _imaging C module is not installed” with my Buildout/Python/Django/PIL on Mac OSX SL?

心不动则不痛 提交于 2019-12-24 02:56:14
问题 I'm using Buildout for my Django projects, with FeinCMS. I've got it setup great locally on my Mac OSX Snow Leopard, with no errors coming up at all when I use runserver. But when I upload an image with FeinCMS in the admin area it comes up with a "Exception Value: The _imaging C module is not installed" error. My traceback is here: http://dpaste.com/149492/ My buildout.cfg file looks like this: [buildout] parts = zlib libjpeg PILwoTk django-mptt django-staticfiles django eggs = PILwoTk

zc.buildout 2.0.0 release somehow ends up breaking Plone buildouts

房东的猫 提交于 2019-12-23 12:01:32
问题 I am trying to run old Plone 3.3 buildout.cfg. In [versions] I pin down buildout as the following: cat buildout.cfg|grep -i zc.buildout zc.buildout = 1.4.3 However, for some reason bootstrap.py generated bin/buildout ends up using the latest 2.0.0 release: cat bin/buildout|grep -i zc.buildout '/srv/plone/x/eggs/zc.buildout-2.0.0-py2.4.egg', Which fails when trying to run bin/buildout: An internal error occured due to a bug in either zc.buildout or in a recipe being used: Traceback (most

Buildout with part build with Cython

∥☆過路亽.° 提交于 2019-12-23 10:28:24
问题 I'm facing problem with cython in buildout. One of the part is a module build with cython from a .c file and a .pyx file. I've already try many solutions : Sean Gillies Blog / 814 / Adding pyproj to a buildout gefira blog » Getting rid of ‘No Cython, trying Pyrex…’ in zc.buildout But all ends with error : ImportError: No module named Cython.Distutils This append when buildout load the setup.py of this cython module. Note that the setup.py is functional when called from its own directory and

how to safely (basic) auth to private PyPI with zc.buildout

怎甘沉沦 提交于 2019-12-23 02:33:17
问题 I've been so far using lovely.buildouthttp for a long time, to authenticate buildout to my private PyPI server. The key required functionality is its ability to use credentials from a separate file. I do not want to enter credentials in the buildout config file itself. Does zc.buildout nowadays have the ability to use basic auth credentials from another file as well? I could not find this information. I know there's also isotoma.basicauth.buildout (have not tried it out). 回答1: buildout can