Skip to content
This repository has been archived by the owner on Oct 16, 2022. It is now read-only.

Bento and buildout do not play nicely together #131

Open
anjos opened this issue Feb 8, 2013 · 0 comments
Open

Bento and buildout do not play nicely together #131

anjos opened this issue Feb 8, 2013 · 0 comments

Comments

@anjos
Copy link

anjos commented Feb 8, 2013

Trying to use bento with buildout but, unfortunately, when bento installs through buildout, it gets its internal paths setup weirdly:

BINDIR             = '/usr/local/bin'
DATADIR            = '/usr/local/share'
DATAROOTDIR        = '/usr/local/share'
DESTDIR            = '/'
DOCDIR             = '/usr/local/share/doc/bento'
DVIDIR             = '/usr/local/share/doc/bento'
EPREFIX            = '/usr/local'
HTMLDIR            = '/usr/local/share/doc/bento'
INCLUDEDIR         = '/usr/local/local/include/python2.7/bento'
INFODIR            = '/usr/local/share/info'
LIBDIR             = '/usr/local/lib'
LIBEXECDIR         = '/usr/local/libexec'
LOCALEDIR          = '/usr/local/share/locale'
LOCALSTATEDIR      = '/usr/local/var'
MANDIR             = '/usr/local/share/man'
PDFDIR             = '/usr/local/share/doc/bento'
PKGDATADIR         = '/usr/local/share/bento'
PKGNAME            = 'bento'
PREFIX             = '/usr/local'
PSDIR              = '/usr/local/share/doc/bento'
PY_VERSION_SHORT   = '2.7'
SBINDIR            = '/usr/local/sbin'
SHAREDSTATEDIR     = '/usr/local/com'
SITEDIR            = '/usr/local/local/lib/python2.7/dist-packages'
SYSCONFDIR         = '/usr/local/etc'

How to reproduce this:

  1. Create a buildout.cfg that contains:
[buildout]
parts = python
eggs = bento

[python]
recipe = zc.recipe.egg
interpreter = python
eggs = ${buildout:eggs}
  1. Download the bootstrap script from here
  2. Execute:
$ python bootstrap
$ ./bin/buildout
  1. Look at the contents of eggs/bento-0.1.1-py2.7.egg/bento/__config_py.py.

For obvious reasons, having my setup.py depend on such a version of bento will lead to errors. The paths should be set to the local buildout environment.

Currently, I'm getting, while building my package with bento and buildout:

Could not write pickle file '/usr/local/share/bento/parsetab' (original error was IOError(2, 'No such file or directory'))
(You can see the traceback by setting the BENTOMAKER_DEBUG=1 environment variable)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant