conda-forge / cctbx-base-feedstock

A conda-smithy repository for cctbx-base.
BSD 3-Clause "New" or "Revised" License
1 stars 6 forks source link

missing scitbx entry point #2

Closed Anthchirp closed 3 years ago

Anthchirp commented 3 years ago

Just copying over the information from https://github.com/conda-forge/staged-recipes/pull/10021 so it is easier to find:

Entry points aren't registered properly. For example:

$ python -c "import pkg_resources;print(list(pkg_resources.iter_entry_points('pytest_randomly.random_seeder')))" 
[]

The expected output is:

$ python -c "import pkg_resources;print(list(pkg_resources.iter_entry_points('pytest_randomly.random_seeder')))" 
[EntryPoint.parse('scitbx_flex = scitbx.array_family.flex:set_random_seed')]

The entry point is so that flex arrays can be correctly used in randomized tests of any downstream package.

Basically what we do in the development installation is roughly equivalent to

setuptools.setup(
    name='libtbx.scitbx',
    description='libtbx entry point manager for scitbx',
    entry_points={
        "pytest_randomly.random_seeder": [
            "scitbx_flex = scitbx.array_family.flex:set_random_seed"
        ],
    },
)
Anthchirp commented 3 years ago

confirmed fixed. Thanks.