laylight-cli 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
laylight_cli/__init__.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""Stands in for the laylight command on systems without a prebuilt binary."""
|
|
2
|
+
|
|
3
|
+
import platform
|
|
4
|
+
import sys
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def main() -> int:
|
|
8
|
+
system = f"{platform.system()} {platform.machine()}"
|
|
9
|
+
if platform.system() == "Linux" and platform.libc_ver()[0] != "glibc":
|
|
10
|
+
system += " without glibc"
|
|
11
|
+
sys.stderr.write(
|
|
12
|
+
f"laylight: there is no build of laylight-cli for {system}.\n"
|
|
13
|
+
"Builds exist for Linux x86-64 and ARM64 (glibc 2.17 or later), macOS on\n"
|
|
14
|
+
"Apple silicon and Windows x86-64; see https://laylight.photonstack.io/installation/\n"
|
|
15
|
+
)
|
|
16
|
+
return 1
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: laylight-cli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: The Laylight command line: check, format and compile Laylight layout files to GDSII
|
|
5
|
+
Keywords: layout,gds,gdsii,photonics,eda
|
|
6
|
+
Project-URL: Documentation, https://laylight.photonstack.io/
|
|
7
|
+
Project-URL: Installation, https://laylight.photonstack.io/installation/
|
|
8
|
+
Classifier: Environment :: Console
|
|
9
|
+
Classifier: Intended Audience :: Science/Research
|
|
10
|
+
Classifier: Operating System :: MacOS
|
|
11
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
12
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
13
|
+
Classifier: Programming Language :: Rust
|
|
14
|
+
Classifier: Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
|
|
17
|
+
# laylight-cli
|
|
18
|
+
|
|
19
|
+
The `laylight` command line for [Laylight](https://laylight.photonstack.io/), a language for photonic and integrated-circuit layouts. It checks, formats and compiles Laylight files to GDSII, writes netlists and turns GDSII back into Laylight source.
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
pip install laylight-cli # or: uv tool install laylight-cli, pipx install laylight-cli
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
The [Laylight Python library](https://pypi.org/project/laylight/) depends on this package, so `pip install laylight` installs the command too.
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
laylight check ring.lyl # syntax, types, units and evaluation
|
|
29
|
+
laylight build ring.lyl -o ring.gds # compile to GDSII
|
|
30
|
+
laylight ir ring.lyl # print the Laylight IR
|
|
31
|
+
laylight netlist ring.lyl # connectivity as JSON; `lvs` compares it
|
|
32
|
+
laylight fmt ring.lyl # format in place
|
|
33
|
+
laylight decompile chip.gds -o chip.lyl
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
The wheels hold a native executable for Linux x86-64 and ARM64 (glibc 2.17 or later), macOS on Apple silicon and Windows x86-64; it does not depend on the Python version. On other systems the package installs a `laylight` command that only reports the missing build. See the [Installation Guide](https://laylight.photonstack.io/installation/) for other ways to install.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
laylight_cli/__init__.py,sha256=Q0RhC6PhC0o2LDXo-daDF8s2RK6sCtUCYArTVyy8hcM,587
|
|
2
|
+
laylight_cli-0.1.0.dist-info/entry_points.txt,sha256=8Fe88WyECI44fF4Dqi_thMgGMo1jIzeRAXXwTgOkRio,47
|
|
3
|
+
laylight_cli-0.1.0.dist-info/METADATA,sha256=B9QblHY0MtMIV2o4SGG_xwgChEYUll8ax8a1G6_6Zws,1983
|
|
4
|
+
laylight_cli-0.1.0.dist-info/WHEEL,sha256=8VYR1m-OGoN7O3coPZXz22gZ7C6eYyKpHpUuu2X0zs4,89
|
|
5
|
+
laylight_cli-0.1.0.dist-info/RECORD,,
|