Skip to content

setup.py copies scapy-ssl_tls layers definitions to wrong folder when wheel is usedΒ #143

@rbo-ktw

Description

@rbo-ktw

Scapy-ssl_tls/setup.py copies its layers to:

C:\Python27\Lib\site-packages\python27\lib\site-packages\scapy\layers

when wheel package is installed.

get_layer_files_dst() method returns list of tuples (<folder>, [<files>]), where <folder> is an absolute path. According to distutils documentation it should copy these files where we expect, but it does not work because wheel module does not support absolute paths, and they end up being installed relative to site-packages (more info).

To solve this problem, there should be a relative (to sys.prefix) path returned.

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