Skip to content

Document the fact that edmtool install creates a non-editable install #553

@aaronayres35

Description

@aaronayres35

Document the fact that edmtool install installs the package in a non-editable mode and edmtool test runs the testsuite from an empty temporary directory - not from the root directory of the git repo. Because of this behavior, a developer might run into failures if they choose to manually discover/run the testsuite from the root of the git repo.

see below for the original issue

When running the testsuite I see some errors with:

No module named 'chaco.contour.contour'

The bad import attempts seem to be here:

from .contour.contour import Cntr
and here:
from .contour.contour import Cntr

To reproduce:

$ python ci/edmtool.py install --toolkit=pyside2
$ edm shell -e chaco-test-3.6-pyside2
$ python -m unittest

which fails with:

======================================================================
ERROR: chaco (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: chaco
Traceback (most recent call last):
  File "/Users/aayres/.edm/envs/chaco-test-3.6-pyside2/lib/python3.6/unittest/loader.py", line 462, in _find_test_path
    package = self._get_module_from_name(name)
  File "/Users/aayres/.edm/envs/chaco-test-3.6-pyside2/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
    __import__(name)
  File "/Users/aayres/Desktop/chaco/chaco/__init__.py", line 6, in <module>
    from ._version import full_version as __version__  # noqa
ModuleNotFoundError: No module named 'chaco._version'

So I then ran $ python setup.py sdist as I thought I remembered that this would generate _version. I then ran python -m unittest again to see the

No module named 'chaco.contour.contour'

errors mentioned above

When running:

$ python ci/edmtool.py install --toolkit=pyside2
$ python ci/edmtool.py test --toolkit=pyside2

I see no errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions