Removinf dlib build from installation

This commit is contained in:
boltgolt 2018-11-09 12:43:10 +01:00
parent 517948d07a
commit c6a7e06d5a
No known key found for this signature in database
GPG key ID: BECEC9937E1AAE26
6 changed files with 15 additions and 15 deletions

View file

@ -1,18 +1,18 @@
sudo: required sudo: required
language: python language: python
python: python: "3.6"
- "3.4"
- "3.6"
install: install:
# Install build tools and ack-grep for checks # Install build tools and ack-grep for checks
- sudo apt install devscripts dh-make ack-grep -y # - sudo apt install devscripts dh-make ack-grep -y
script: script:
# Build the binary (.deb) # Build the binary (.deb)
- debuild -i -us -uc -b - debuild -i -us -uc -b
# Install the binary, also fireing the debian scripts # Install the binary, running the debian scripts in the process
- sudo apt install ../*.deb -y - sudo apt install ../*.deb -y
# Confirm the face_recognition module has been installed correctly
- 'python3 -c "import face_recognition; print(\"OK\")" | ack-grep --passthru "OK"'
# Check if the username passthough works correctly with sudo # Check if the username passthough works correctly with sudo
- 'howdy | ack-grep --passthru --color "current active user: travis"' - 'howdy | ack-grep --passthru --color "current active user: travis"'
- 'sudo howdy | ack-grep --passthru --color "current active user: travis"' - 'sudo howdy | ack-grep --passthru --color "current active user: travis"'
@ -27,3 +27,6 @@ notifications:
addons: addons:
apt: apt:
update: true update: true
packages:
- dh-make
- ack-grep

2
debian/control vendored
View file

@ -9,7 +9,7 @@ Vcs-Git: https://github.com/boltgolt/howdy
Package: howdy Package: howdy
Homepage: https://github.com/boltgolt/howdy Homepage: https://github.com/boltgolt/howdy
Architecture: all Architecture: all
Depends: ${misc:Depends}, git, python3, python3-pip, python3-dev, python3-setuptools, build-essential, libpam-python, fswebcam, libopencv-dev, python-opencv, cmake Depends: ${misc:Depends}, git, python3, python3-pip, python3-dev, python3-setuptools, libpam-python, fswebcam, libopencv-dev, python-opencv
Description: Howdy: Windows Hello style authentication for Linux. Description: Howdy: Windows Hello style authentication for Linux.
Use your built-in IR emitters and camera in combination with face recognition Use your built-in IR emitters and camera in combination with face recognition
to prove who you are. to prove who you are.

8
debian/postinst vendored
View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3 #!/usr/bin/python3
# Installation script to install howdy # Installation script to install howdy
# Executed after primary apt install # Executed after primary apt install
@ -83,12 +83,12 @@ handleStatus(subprocess.call(["pip3 install --upgrade pip"], shell=True))
log("Cloning dlib") log("Cloning dlib")
# Clone the dlib git to /tmp, but only the last commit # Clone the dlib git to /tmp, but only the last commit
handleStatus(subprocess.call(["git", "clone", "--depth", "1", "https://github.com/davisking/dlib.git", "/tmp/dlib_clone"])) # handleStatus(subprocess.call(["git", "clone", "--depth", "1", "https://github.com/davisking/dlib.git", "/tmp/dlib_clone"]))
log("Building dlib") log("Building dlib")
# Start the build without GPU # Start the build without GPU
handleStatus(subprocess.call(["cd /tmp/dlib_clone/; python3 setup.py install --yes USE_AVX_INSTRUCTIONS --no DLIB_USE_CUDA"], shell=True)) # handleStatus(subprocess.call(["cd /tmp/dlib_clone/; python3 setup.py install --yes USE_AVX_INSTRUCTIONS --no DLIB_USE_CUDA"], shell=True))
log("Cleaning up dlib") log("Cleaning up dlib")
@ -99,7 +99,7 @@ print("Temporary dlib files removed")
log("Installing python dependencies") log("Installing python dependencies")
# Install face_recognition though pip # Install face_recognition though pip
handleStatus(subprocess.call(["pip3", "install", "--cache-dir", "/tmp/pip_howdy", "face_recognition_models==0.3.0", "Click>=6.0", "numpy", "Pillow"])) handleStatus(subprocess.call(["pip3", "install", "--cache-dir", "/tmp/pip_howdy", "face_recognition_models==0.3.0", "Click>=6.0", "numpy", "Pillow", "dlib", "opencv-python"]))
log("Installing face_recognition") log("Installing face_recognition")

2
debian/preinst vendored
View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3 #!/usr/bin/python3
# Used to check cameras before commiting to install # Used to check cameras before commiting to install
# Executed before primary apt install of files # Executed before primary apt install of files

2
debian/prerm vendored
View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3 #!/usr/bin/python3
# Executed on deinstallation # Executed on deinstallation
# Completely remove howdy from the system # Completely remove howdy from the system

3
debian/rules vendored
View file

@ -6,6 +6,3 @@ include /usr/share/dpkg/default.mk
%: %:
dh $@ dh $@
binary:
dh binary