Skip to content

Conversation

rbo-ktw
Copy link

@rbo-ktw rbo-ktw commented Oct 22, 2018

Problem:

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 (, []), where 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.

Solution:

Relative (to sys.prefix) path to scapy installation directory is used now.

Problem:

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.

Solution:

Relative (to sys.prefix) path to scapy installation directory is used now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant