Skip to content

Commit 95b41da

Browse files
author
Martin Gallo
committed
Installing npcap instead of using nmap and copying winpcap.dll
1 parent 33e7db4 commit 95b41da

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.appveyor.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,21 @@ install:
2121
# Set path
2222
- "set PYTHONPATH=%APPVEYOR_BUILD_FOLDER%"
2323
- "set PATH=%APPVEYOR_BUILD_FOLDER%;%PYTHON%;%PYTHON%\\Scripts;%PATH%"
24+
25+
# Install whell for building
2426
- "python.exe -m pip install wheel"
25-
# Installing WinPcap directly does not work,
26-
# see http://help.appveyor.com/discussions/problems/2280-winpcap-installation-issue
27-
- cinst nmap
27+
28+
# Installing Npcap
29+
- ps: iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/secdev/scapy/master/.appveyor/InstallNpcap.ps1'))
2830
- refreshenv
29-
- "python.exe -m pip install Sphinx==1.6.5"
30-
# Copy WinPcap libraries so scapy can found them
31-
- "copy C:\\Windows\\System32\\Npcap\\wpcap.dll %APPVEYOR_BUILD_FOLDER%"
32-
- "copy C:\\Windows\\System32\\Npcap\\packet.dll %APPVEYOR_BUILD_FOLDER%"
31+
3332
# Set the proper build program
3433
- if "%ARCH%"=="32" (call "C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\vcvarsall.bat" x86)
3534
- if "%ARCH%"=="64" (call "C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\vcvarsall.bat" amd64)
35+
3636
# Build and install the library
3737
- "python.exe setup.py install"
38+
3839
# Install optional requirements
3940
- "pip install -r requirements-docs.txt"
4041
- "pip install -r requirements-optional.txt"

0 commit comments

Comments
 (0)