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
language: python
python:
- "3.4"
- "3.6"
python: "3.6"
install:
# 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:
# Build the binary (.deb)
- 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
# 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
- '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:
apt:
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
Homepage: https://github.com/boltgolt/howdy
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.
Use your built-in IR emitters and camera in combination with face recognition
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
# Executed after primary apt install
@ -83,12 +83,12 @@ handleStatus(subprocess.call(["pip3 install --upgrade pip"], shell=True))
log("Cloning dlib")
# 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")
# 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")
@ -99,7 +99,7 @@ print("Temporary dlib files removed")
log("Installing python dependencies")
# 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")

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
# 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
# Completely remove howdy from the system

3
debian/rules vendored
View file

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