Comments (6)
I have no idea how to actually implement this. Hopefully there is a library or something!
from glasgow.
platform.platform()
is probably good -- on my system
>>> import platform
>>> platform.platform()
'FreeBSD-14.0-CURRENT-amd64-64bit-ELF'
from glasgow.
Not sure it's so good on Debian...
from glasgow.
Perhaps information from /etc/os-release? We adopted that from the Linux ecosystem, although I'm not sure if it's universal.
On my laptop it contains:
NAME=FreeBSD
VERSION=14.0-CURRENT
VERSION_ID=14.0
ID=freebsd
ANSI_COLOR="0;31"
PRETTY_NAME="FreeBSD 14.0-CURRENT"
CPE_NAME=cpe:/o:freebsd:freebsd:14.0
HOME_URL=https://FreeBSD.org/
BUG_REPORT_URL=https://bugs.FreeBSD.org/
from glasgow.
Perhaps information from /etc/os-release? We adopted that from the Linux ecosystem, although I'm not sure if it's universal.
Yep, I think that's the way to go! /etc/os-release
on *nix (falling back to platform.uname()
if not available) and its own thing on Windows.
from glasgow.
Also maybe we should add the versions of every installed package (or at least every glasgow
dependency there) too; cf. #408, though there --version
itself fails.
from glasgow.
Related Issues (20)
- Custom USB Manufacturer String HOT 1
- [RFC] New basis of operation: Reliable Datagram Pipe HOT 18
- JESD3 lexer calculates wrong checksum whenever CR newlines are used HOT 1
- Replace the dependency on `crc` using `amaranth.lib.crc`
- A logo
- Device fails to enumerate when plugged in for the first time on Windows HOT 15
- Instructions in README do not make it possible to build bitstreams on Windows HOT 4
- Glasgow does not gracefully shutdown if the device is unplugged... HOT 3
- Devices may "forget" firmware. HOT 4
- Add social media card to the docs HOT 1
- Add a flag to `glasgow factory` which indicates that the device has been modified from the original design
- "glasgow --version" produces TypeError: entry_points() got an unexpected keyword argument 'group' HOT 10
- Calling `exit()` from script / REPL does not terminate glasgow HOT 1
- Mention cases (3d-printable as well) in the documentation HOT 2
- glasgow build also has importlib issues with python <3.10
- Add the very nice diagrams from CrowdSupply packaging on the website
- running Glasgow exectutable produces "TypeError: expected string or bytes-like object" in packaging\utils.py HOT 21
- Export BOM for revC3 and add whichever script generates it in the tree
- udev rules on Arch(-ish) systems HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glasgow.