Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Refactor: Setup script #60

Closed
renekliment opened this issue Oct 22, 2016 · 2 comments
Closed

Refactor: Setup script #60

renekliment opened this issue Oct 22, 2016 · 2 comments
Labels
Milestone

Comments

@renekliment
Copy link
Member

renekliment commented Oct 22, 2016

  • Write it to be very modular.
  • Do it is as platform-independent as possible.
  • It will have to implement some checks - or should we ask the user about everything?
  • In python? Maybe in a later phase if it makes sense?
  • Needs to setup OS platforms (covers requirements install for major systems)
    • try to do as much we can via pip
    • apt-get based systems
    • pacman/yaourt based systems
    • yum (or whatever Fedora uses) based systems
    • Mason wrote a pretty comprehensive manual for Arch on RPi: Arch setup and making it work under the alexapi user
  • Needs to also setup device platforms.
    • Don't forget to do the install of GPIO libraries for RPi and OrangePi
    • Apart from the RPi udev/permissions stuff on Arch, we'll have to do a similar thing for general sysfs gpio platforms (Write a general sysfs GPIO platform #37)
@renekliment
Copy link
Member Author

I have to say, this is gonna be one of the less fun refactors. But what the hell, we can probably just put everything into functions, maybe separate files if it makes sense and ask the users what they want (which OS and device platforms) and call the corresponding functions and we're done super quick.

@renekliment renekliment modified the milestones: 1.4, 1.3 Nov 5, 2016
@renekliment renekliment mentioned this issue Nov 9, 2016
10 tasks
renekliment added a commit that referenced this issue Nov 27, 2016
* modularized and generalized, cleanup

* config: renamed ProductID to Device_Type_ID

* support for Arch Linux (instructions by @maso27)

* support for currently supported boards in AlexaPI (GPIO libs install, etc)

* added unit overrides for various things

* set up GPIO permissions (udev)

* use pip instead of system packaging where possible

* disabled pip cache due to pypa/pip#2984

* change default device_platform to dummy

* set device-specific config on install
@illperipherals
Copy link
Contributor

I vote for keeping this as shell script for the time being. I think it might be beneficial to start working our scripts towards a common skeleton (cli params, colors, logging) for consistency.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants