You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
python3.9: has_function not working for Visual Studio 2017 build #165
Tested with yara-python 4.0.4 and Python 3.9 on Windows 10 with Visual Studio 2017
Running: python.exe setup.py build fails with error: [WinError 1] Incorrect function
Unfortunately this appears to be a very generic error. Seeing the previous line reference memmem%RANDOM%.c this is likely related to the use of memmem. The same applies to strlcpy.
Removing memmem and strlcpy detection from setup.py
This also applies to more functions it looks like has_function is not working for this build environment. I've removed with muted from has_function which allowed the module to build.
changed the title [-]python3.9: memmem and strlcpy fail to build with Visual Studio 2017[/-][+]python3.9: has_function not working for Visual Studio 2017 build[/+]on Jan 31, 2021
Activity
joachimmetz commentedon Jan 31, 2021
This also applies to more functions it looks like
has_functionis not working for this build environment. I've removedwith mutedfromhas_functionwhich allowed the module to build.[-]python3.9: memmem and strlcpy fail to build with Visual Studio 2017[/-][+]python3.9: has_function not working for Visual Studio 2017 build[/+]