Commit Graph

152 Commits (b198f0e936ec9de2800ac2f582e91ed8c3976bac)

Author SHA1 Message Date
Kris Gesling e756f96d9d
Merge pull request #2521 from countcretinos/fix/fedora
Fix Mimic build on Fedora
2020-07-28 01:35:38 +00:00
Thomas Doczkal 8ddd088557
Merge branch 'dev' into gentoo_setup 2020-06-06 12:19:57 +02:00
Åke 7d4243318a
Revert "use long options and add --upgrade to arch linux pacman" 2020-05-17 20:14:07 +02:00
Thomas Doczkal 5baea9355b remove virtualenv, add python-request, media-libs/alsa-lib and dev-libs/icu 2020-05-17 13:57:47 +02:00
Åke 90d2570cc3
Merge pull request #2575 from PureTryOut/optional-deps
Move requirements.txt to a new requirements folder and add optional deps
2020-05-14 15:04:56 +02:00
Åke db58e189e4
Merge pull request #2584 from PureTryOut/dev-setup-alpine-support
dev_setup.sh: add support for Alpine Linux
2020-05-12 20:39:22 +02:00
Bart Ribbers d6337f51c5
dev_setup.sh: add support for Alpine Linux 2020-05-12 15:17:40 +02:00
Thomas Doczkal 0cda2b1c6c
remove --sync and align with other distros like debian 2020-05-11 21:23:37 +02:00
Thomas Doczkal fb87b719ff
use long options and add upgrade to arch linux pacman 2020-05-11 21:07:53 +02:00
Bart Ribbers 531f78c499
Move requirements.txt to a new requirements folder and add optional deps
Some dependencies aren't actually required but can be optionally
installed for extra functionality.

The Chromecast is an optional audio backend
VLC is an optional audio backend
pyalsaaudio is only used by the mark1 enclosure
google-api-python-client is an optional STT backend, by default Mycroft
uses the Mycroft servers
2020-05-11 15:31:10 +02:00
Thomas Doczkal fb760f0202 add gentoo setup 2020-05-10 17:50:52 +02:00
Count Cretinos 7af26fbb55
Fix Mimic build on Fedora
See mycroftai/mimic1#196
2020-03-29 21:07:44 +03:00
Joshua Moore decb77a437
Fixed typo "Devloper" to "Developer" 2020-03-01 20:56:54 -07:00
Åke Forslund 6a7288ac93 Upgrade to latest pip version and version of getpip 2020-01-27 15:49:19 +01:00
Åke e4a50f0c81
Merge pull request #2412 from maxbachmann/patch-2
use default python version on redhat
2019-12-07 12:14:17 +01:00
Åke Forslund 19ecd245b2 Fix --clean option of dev_setup.sh
removing the tmp files needed the recursive flag
2019-12-06 11:45:57 +01:00
maxbachmann 5c642f5336
use default python version on redhat 2019-12-05 17:46:19 +01:00
Åke 366730b7a9
Merge pull request #2403 from gbaptista/dev
Fixing dev_setup.sh for Arch Linux
2019-12-05 15:21:19 +01:00
Guilherme Baptista d7b4322aa1 removing virtualenv from arch linux 2019-12-05 10:40:22 -03:00
Åke 9ed5b69fe1
Merge pull request #2401 from forslund/feature/dev-setup-clean
Add --clean option to dev_setup.sh
2019-12-03 17:11:58 +01:00
maxbachmann bd87ad6d99
readd fedora installation 2019-11-30 11:27:16 +01:00
Guilherme Baptista 286efb9624 fixing archlinux installation 2019-11-28 19:56:23 -03:00
Åke Forslund aac711564b Add --clean option to dev_setup.sh
The clean will remove any files and directories installed onto the system by the
dev setup including pairing, skills and log files.
2019-11-28 09:58:22 +01:00
Åke Forslund 7117465701 Refactor package install for OSes into functions 2019-11-19 16:31:06 +01:00
Åke Forslund a0ea872293 Use a variable for apt packages
Since the package list is used in two places this will reduce risks of
changing in one place but not another.
2019-11-19 15:55:39 +01:00
gbaptista f0fcba4b01 adding pulseaudio dependencies 2019-11-18 21:52:04 -03:00
Max Brenner e85f55b3e4 improve os_is_like
- it now handles multiple values
- e.g. "debian ubuntu"
2019-10-08 18:02:05 +02:00
Åke Forslund a77216714d Replace new instance of IS_TRAVIS with CI 2019-09-26 16:32:38 +02:00
Christian Clauss 121577487f Replace $IS_TRAVIS with builtin $CI
Updates dev_setup.sh and scripts/prepare_msm.sh
Fixes #2243
2019-09-26 16:31:46 +02:00
David Wagner 319b5a497a Force install if IS_TRAVIS
Do not need to check for package uninstall if IS_TRAVIS is true.
2019-08-27 17:44:21 +02:00
Kris Gesling 7b122a3fda if package conflict - require user to review package changes 2019-08-23 16:29:09 +09:30
Kris Gesling a64ca5156a check for conflicting libjack package
Checks for the existence of libjack-jackd2-0 on debian systems
and suggests the user cancel the installation if found.

Resolves issue #2238
2019-08-23 00:21:42 +09:30
Åke 3a68f75f8f
Merge pull request #2209 from fermulator/fix_os_mint_and_no_match_prompt
support ubuntu & mint (debian like) OS
2019-08-02 07:13:40 +02:00
Åke Forslund 3100c72c13 Check for terminals ability to display colours
On serial connections, with weird terminal emulators or when run interactively
the terminal may not support colours this would cause the dev_setup to
be aborted. This adds a simple check for terminal colors.

"-1" for no color support was empirically established.
2019-07-18 14:00:41 +02:00
Fermulator df1c5e7560
support ubuntu & mint (debian like) OS
add `os_is()` and `os_is_like()` call support for debian-like OSes (specifically Mint, but also cover Ubuntu)
Ubuntu should already be covered via "is like debian" (but now we're extra covered)

Also if there is NO match, we should really prompt the user for what to do.
2019-07-14 09:23:23 -04:00
Åke Forslund 51db7829bd Fix debian detection
Debian is not like Debian, Debian is Debian
2019-06-26 10:41:00 +02:00
Åke a17c93223b
Merge branch 'dev' into patch-2 2019-06-25 09:36:41 +02:00
MichaIng 0867a8c972
Apply coding style to new package install prints as well 2019-06-24 23:01:11 +02:00
MichaIng 5725359f16
Merge branch 'dev' into patch-1 2019-06-24 22:53:41 +02:00
MichaIng 4c4ebce8cc
Bash coding tuning
+ Always use single quotes around strings that are fully meant literal and do not contain single quotes themselves.
+ Remove curly braces around variable names, if no next character or a space is following.
+ Remove curly braces double quotes around single variables (and command substitutions) that are assigned to variables. The contained strings are always added correctly with spaces.
+ Merge multiple printed lines into one echo call.
2019-06-24 22:47:25 +02:00
MichaIng 73f774747e
Merge branch 'dev' into patch-2 2019-06-22 14:13:34 +02:00
Åke a9a57cb4fc Feature/better os detection (#2165)
* Improve detection of correct package manager

Use the new function os_is_like to detect Fedora based systems and Debian derivatives.

* Update manual install instructions

Manual install instructions were quite outdated and does not match the
actual needed packages.

* Update colors.

Green for detected OSes, Yellow if OS was not detected. Blue is kept for
package highlighting list of packages needed.
2019-06-21 13:41:49 -05:00
MichaIng 58356b053b
Remove GObject dependency from install deps completely 2019-06-18 20:17:16 +02:00
MichaIng d504b13bf6
Replace Python 2 packages by their Python 3 counterparts and remove doubled "automake"
+ python3-setuptools: https://packages.debian.org/stretch/python3-setuptools
+ python3-gi: https://packages.debian.org/stretch/python3-gi
2019-06-18 18:13:49 +02:00
MichaIng ef7e72c524
Update dev_setup.sh to use and benefit from bash double square bracket syntax
+ Consequently use double square brackets (over single square backets), to be consistent and benefit from this syntax
+ Skip obsolete quoting of left sided variables and strings in double square brackets
+ Use "-z" instead of comparing with empty string explicitly in double square brackets
+ Merge multiple double square bracket expressions, connected by "&&" or "||", into a single expression
+ "! -z" => "-n"
+ Remove obsolete free spaces from command substitutions, to be consistent
2019-06-18 17:35:33 +02:00
Åke Forslund 6626884c1e Make sure pre-commit hook gets upgraded 2019-05-15 13:46:43 +02:00
Åke f4da3e7127 Fix chown in dev_setup when GROUP != USER (#2094)
This finds the default group of the user and uses that as group when doing chown in dev_setup.sh the same way as it's done in the prepare-msm.sh script
2019-04-17 11:43:02 -05:00
Åke 8a82168168 Install pep8 check as pre-commit hook (#1994)
* Install pep8 check as pre-commit hook

If no pre-commit hook exists the scripts/pre-commit will be installed as a pre-commit hook checking for PEP8 issues when making a commit. It will also allow overwriting the pre-commit hook installed by previous dev_setups.

* Ask before installation of the pre-commit hook.
2019-03-27 01:28:29 -05:00
Åke Forslund 50e5df100a Set a default locale when running dev_setup.sh
System Localisation could break the maximum-used-cores calculation when mimic is built. This sets it to a default (C) locale ensuring a reliable run.
2019-03-06 16:39:22 +01:00
Åke Forslund 811e7e37e8 Move sudo check to beginning of script
The sudo command check was performed only when packages were installed and not before the interactve portion leaving $SUDO unset when trying to create the /opt/mycroft folder.
2019-02-02 23:15:50 +01:00