From 1fb01fbf28fda8ccbfa76f3ff76c3f711f207ade Mon Sep 17 00:00:00 2001 From: Tim Ryan Date: Wed, 14 Oct 2015 08:23:39 -0400 Subject: [PATCH] Removes protobuf dependency. Closes #339 --- requirements.txt | 2 -- scripts/compile-protobufs.sh | 7 ----- setup.py | 48 ++++++++++++++++++---------------- windows/droneapiWinBuild.bat | 24 ----------------- windows/droneapi_installer.iss | 1 - 5 files changed, 26 insertions(+), 56 deletions(-) delete mode 100755 scripts/compile-protobufs.sh diff --git a/requirements.txt b/requirements.txt index b59df0378..ce1b2e86f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,3 @@ -poster==0.8.1 -protobuf==2.6.1 requests==2.5.1 pymavlink>=1.1.62 sphinx-3dr-theme>=0.0.6 diff --git a/scripts/compile-protobufs.sh b/scripts/compile-protobufs.sh deleted file mode 100755 index 588c00285..000000000 --- a/scripts/compile-protobufs.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -cd $(dirname $0) -cd .. - -DESTDIR=dronekit/lib -protoc --python_out=$DESTDIR --proto_path=../dronekit-protobuf/src ../dronekit-protobuf/src/webapi.proto diff --git a/setup.py b/setup.py index a6add7a28..2c26cd440 100644 --- a/setup.py +++ b/setup.py @@ -3,25 +3,29 @@ version = '2.0.0b3' -setup (name = 'dronekit', - zip_safe=True, - version = version, - description = 'Python language bindings for the DroneApi', - long_description = 'Python language bindings for the DroneApi', - url = 'https://github.com/dronekit/dronekit-python', - author = '3D Robotics', - install_requires = ['pymavlink >= 1.1.62', - 'protobuf >= 2.5.0', - 'requests == 2.5.1' ], - author_email = 'tim@3drobotics.com, kevinh@geeksville.com', - classifiers=['Development Status :: 4 - Beta', - 'Environment :: Console', - 'Intended Audience :: Science/Research', - 'License :: OSI Approved :: Apache Software License', - 'Operating System :: OS Independent', - 'Programming Language :: Python :: 2.7', - 'Topic :: Scientific/Engineering' - ], - license='apache', - packages = ['dronekit', 'dronekit.module', 'dronekit.lib' ], - ext_modules = []) +setup(name='dronekit', + zip_safe=True, + version=version, + description='Python language bindings for the DroneApi', + long_description='Python language bindings for the DroneApi', + url='https://github.com/dronekit/dronekit-python', + author='3D Robotics', + install_requires=[ + 'pymavlink >= 1.1.62', + 'requests == 2.5.1', + ], + author_email='tim@3drobotics.com, kevinh@geeksville.com', + classifiers=[ + 'Development Status :: 4 - Beta', + 'Environment :: Console', + 'Intended Audience :: Science/Research', + 'License :: OSI Approved :: Apache Software License', + 'Operating System :: OS Independent', + 'Programming Language :: Python :: 2.7', + 'Topic :: Scientific/Engineering', + ], + license='apache', + packages=[ + 'dronekit', 'dronekit.module', 'dronekit.lib' + ], + ext_modules=[]) diff --git a/windows/droneapiWinBuild.bat b/windows/droneapiWinBuild.bat index dba643871..1344267f3 100644 --- a/windows/droneapiWinBuild.bat +++ b/windows/droneapiWinBuild.bat @@ -9,29 +9,5 @@ for /f "tokens=*" %%a in ( set VERSION=%%a ) -rem -----Get protobuf and unzip----- -C:\python27\scripts\pip.exe install --download .\ protobuf -rem get the protobuf fullname -for /f "tokens=*" %%a in ( - 'dir /B protobuf-*' - ) do ( - set PROTOBUFFULL=%%a - ) - -rem Use 7zip to unzip files. Works for both 32 and 64 bit versions -"C:\Program Files\7-zip\7z.exe" x -y %PROTOBUFFULL% -"C:\Program Files\7-zip\7z.exe" x -y .\dist\protobuf* -"C:\Program Files (x86)\7-zip\7z.exe" x -y %PROTOBUFFULL% -"C:\Program Files (x86)\7-zip\7z.exe" x -y .\dist\protobuf* - -rem get the protobuf fullname -for /f "tokens=*" %%a in ( - 'dir /A:D /B protobuf-*' - ) do ( - set PROTOBUFDIR=%%a - ) -xcopy /E /Y %PROTOBUFDIR%\google .\google\ - - rem -----Build the Installer----- "C:\Program Files (x86)\Inno Setup 5\ISCC.exe" /dMyAppVersion=%VERSION% dronekit_installer.iss diff --git a/windows/droneapi_installer.iss b/windows/droneapi_installer.iss index b9e3f5e76..707baa6ef 100644 --- a/windows/droneapi_installer.iss +++ b/windows/droneapi_installer.iss @@ -32,7 +32,6 @@ Name: "english"; MessagesFile: "compiler:Default.isl" [Files] Source: "..\dronekit\*"; DestDir: "{code:GetMAVProxyPath}\dronekit"; Flags: ignoreversion recursesubdirs createallsubdirs Source: "..\examples\*"; DestDir: "{code:GetMAVProxyPath}\examples"; Flags: ignoreversion recursesubdirs createallsubdirs -Source: "google\*"; DestDir: "{code:GetMAVProxyPath}\google"; Flags: ignoreversion recursesubdirs createallsubdirs ; NOTE: Don't use "Flags: ignoreversion" on any shared system files