Skip to content

Error with PROJECT_SOURCE_PATH when source is in local folder #8

@yucer

Description

@yucer

When I use this option in my buildout recipe:

version = path /home/yucer/src/odoo

Then the following path is generated in the project:

  <pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
    <path>/v8project/home/yucer/src/odoo</path>
  </pydev_pathproperty>

And eclipse signals an error. On the other hand everything works OK when i use:

version = git ssh://git.kjellberg-erp.de/odoo.git server 8.0 depth=1

Then the code is checked out to the folder parts/server and the following path is generated:

  <pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
    <path>/v8project/parts/server</path>
  </pydev_pathproperty>

My buildout.cfg is:

[buildout]
parts =
      openerp
      python

[openerp]
recipe = anybox.recipe.odoo:server
version = git https://github.com/odoo/odoo.git odoo 8.0 depth=1

options.xmlrpc = True  # Activate HTTP
options.xmlrpcs = False
options.netrpc = False
options.without_demo = True

options.db_user = odoo
options.db_name = odoo_db
options.db_host = localhost
options.db_password = odoo_db_passw
options.admin_passwd = odoo_admin_passw

[python]
recipe = zc.recipe.egg
interpreter = python
extra-paths = ${buildout:directory}/parts/server

eggs =  unittest2
        pywebdav
        pyyaml
        xlrd

[versions]
setuptools = 7.0
zc.buildout = 2.2.5
zc.recipe.egg = 2.0.1
babel = 1.3
psutils = 2.1.3

And my devel.cfg is:

extends = buildout.cfg
parts = pydevproject

[pydevproject]
<= openerp
#version = path /home/yucer/src/odoo
recipe = acsone.recipe.odoo.pydev
project-name = v8project
python-version = python 2.7
python-interpreter = Default

When I uncomment the version line i get the error...

May we make a symbolic link to parts/server ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions