buildout

How do I use easy_install and buildout when pypi is down?

不打扰是莪最后的温柔 提交于 2019-12-02 19:27:46
I am using buildout to automatically download and setup the many dependencies of my Plone installation. buildout more or less uses easy_install to download and install a bunch of Python eggs. This usually works, but it doesn't work if any of the dependencies cannot be downloaded or if I want buildout to find an internal package not appropriate for pypi. How can I set up my own local version of pypi to automatically mirror the packages I need? Will it still depend on third-party servers for packages that use pypi for their metadata but not their code? Here are instructions on how to setup your

auth_user error with Django 1.8 and syncdb / migrate

佐手、 提交于 2019-12-02 17:24:49
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? I fix this by running auth first, then the rest of my migrations: python manage.py migrate auth python manage.py migrate On my environment, I fix

combine javascript files at deployment in python

北战南征 提交于 2019-12-02 14:45:20
I'm trying to reduce the number of scripts included in our website and we use buildout to handle deployments. Has anybody successfully implemented a method of combining and compressing scripts with buildout? Here's a Python script I made that I use with all my heavy JavaScript projects. I'm using YUICompressor, but you can change the code to use another compressor. import os, os.path, shutil YUI_COMPRESSOR = 'yuicompressor-2.4.2.jar' def compress(in_files, out_file, in_type='js', verbose=False, temp_file='.temp'): temp = open(temp_file, 'w') for f in in_files: fh = open(f) data = fh.read() + '

How to pin version of recipe egg for a particular part

巧了我就是萌 提交于 2019-12-01 20:44:05
问题 I have added a section in my buildout to install python-ldap as described here: http://bluedynamics.com/articles/jens/python-ldap-as-egg-with-buildout However my buildout fails with: While: Initializing. Getting section buildout. Initializing section buildout. Getting option buildout:eggs. Getting section python-ldap. Initializing section python-ldap. Installing recipe zc.recipe.egg. Error: There is a version conflict. We already have: zc.buildout 1.4.2 but zc.recipe.egg 1.3.2 requires 'zc

How to pin version of recipe egg for a particular part

二次信任 提交于 2019-12-01 19:44:40
I have added a section in my buildout to install python-ldap as described here: http://bluedynamics.com/articles/jens/python-ldap-as-egg-with-buildout However my buildout fails with: While: Initializing. Getting section buildout. Initializing section buildout. Getting option buildout:eggs. Getting section python-ldap. Initializing section python-ldap. Installing recipe zc.recipe.egg. Error: There is a version conflict. We already have: zc.buildout 1.4.2 but zc.recipe.egg 1.3.2 requires 'zc.buildout>=1.5.0'. Why is buildout trying to get the latest version of zc.recipe.egg for this particular

Find requirement specs in a Plone buildout setup

爱⌒轻易说出口 提交于 2019-12-01 15:26:41
问题 I have a Plone site (something around 4.2.4, telling from a version.txt in the root directory) which I'd like to update to a recent version (I found this how-to) (as of now, 4.3.4 ); I have inherited a plethora of pinned versions which are not documented and might be outdated. When commenting out my versions.cfg , using http://dist.plone.org/release/4.3-latest/versions.cfg instead and re-running buildout with -vvv , I get: Develop: '.../src/collective.mathjax' in: '.../src/collective.mathjax'

How do I tell buildout to ignore a binary distribution and build from source instead?

旧城冷巷雨未停 提交于 2019-12-01 13:38:25
I am including in a buildout an egg ( jsonlib ) that uses C extensions. On pypi a precompiled blob is present. But it's not compatible with my environment: I get a undefined symbol: PyUnicodeUCS4_FromEncodedObject error. I know this has to do with different environments at compile time and runtime. To solve it buildout should compile the package instead of using the prebuilt one. How do I tell buildout to compile a package (all packages would be fine too) no matter what precompiled egg files it finds on pypi? There you go: [buildout] parts = getit # used to show which download was fetched

Can buildout create content as part of a Plone install?

倖福魔咒の 提交于 2019-12-01 07:32:34
I'm trying to achieve a repeatable deployment of Plone for a site, and using buildout, basically following Martin Aspeli's book Professional Plone 4 Development . I can set up the system with my source products <site>.policy and <site>.theme , and have activated the theme automatically, but when I run buildout, I still have to instantiate a Plone site and activate the policy product, before creating the standard objects for the site. Can buildout check for the existence of content objects like the Plone site object or particular folders during setup, and create them if they don't exist with

Can buildout create content as part of a Plone install?

纵然是瞬间 提交于 2019-12-01 05:06:07
问题 I'm trying to achieve a repeatable deployment of Plone for a site, and using buildout, basically following Martin Aspeli's book Professional Plone 4 Development . I can set up the system with my source products <site>.policy and <site>.theme , and have activated the theme automatically, but when I run buildout, I still have to instantiate a Plone site and activate the policy product, before creating the standard objects for the site. Can buildout check for the existence of content objects

How to structure a python projects with shared sub apps using git and buidout without symbolic links

青春壹個敷衍的年華 提交于 2019-11-30 15:31:30
I have multiple projects that shares child apps with other projects . When working within the project directory I want to be able to make changes to the app , update it, and pull those updates into the second project . Requirement: No use of symbolic links (my IDE's debugger doesn't work well with them) No compiling/rerun a script. I would like to make changes to the app without having to rerun a script/buildout. Apps must be within the project folder. Here's the structure: app_one (git repo) |-- app_one (actual app uses by projects) | +-- models.py |-- README.md +-- setup.py project_one (git