Skip to content

Creating an SDist package from a SConscript in a subfolder makes the package turn out wrong. #45

@daramarak

Description

@daramarak

I have a dual python/c++ project and want to pack the python parts in packages.

Structure is like this:

MainFolder
----SConstruct
----Python
--------SConscript
--------setup.py
--------MyPythonPackage
------------init.py
------------more_python.py

When I in the SConscript file does this:

sources = Glob(.py)
sources2 = Glob(MyPythonPackage/
.py)
sdist = env.SDist(sources+sources2)

The tar.gz file end up with a "Python" folder, and then under this the setup.py, and the package. Making it impossible to pip install the package.

Am I missing something, or is this a oversight in this scons extension.

I would love to use this package for our software, as we always blend python and c++, already use scons, and this seems like a perfect fit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions