Skip to content

mdoc components missing when installing on Windows #10

Description

@ljoy913

When installing on Window the mdoc, mso, and test folders are missing from .../site-packages/pymdoccbor

Forward-slashes (/) in setup.py are the issue. This can be fixed using os.path.join to build the paths.

Replace:

package_data={f"{_pkg_name}": [
        i.replace(f'{_pkg_name}/', '')
        for i in glob(f'{_pkg_name}/**', recursive=True)
    ]
},

With

import os

package_data={f"{_pkg_name}": [
        i.replace(os.path.join(f'{_pkg_name}', ''), '')
        for i in glob(os.path.join(f'{_pkg_name}', '**'), recursive=True)
    ]
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions