Skip to content

Commit fdda8ea

Browse files
committed
Renaming clibs/ to clib/ since a library is already a collection of things
1 parent cfac02b commit fdda8ea

File tree

11 files changed

+22
-22
lines changed

11 files changed

+22
-22
lines changed

Makefile

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ installreqs: ## Install Python project requirements to root .venv
2323
buildrng:
2424
@echo "Building and installing RNG library..."
2525
uv pip install nanobind
26-
cd clibs/pecos-rng && CC=gcc CXX=g++ uv pip install --python $(shell uv run which python) -e .
26+
cd clib/pecos-rng && CC=gcc CXX=g++ uv pip install --python $(shell uv run which python) -e .
2727

2828
# Building development environments
2929
# ---------------------------------
@@ -155,12 +155,12 @@ clean-unix:
155155
@find . -type d -name "junit" -exec rm -rf {} +
156156
@find python -name "*.so" -delete
157157
@find python -name "*.pyd" -delete
158-
@# Clean clibs build artifacts
159-
@find clibs -type d -name "build" -exec rm -rf {} +
160-
@find clibs -type d -name "dist" -exec rm -rf {} +
161-
@find clibs -type d -name "*.egg-info" -exec rm -rf {} +
162-
@find clibs -type d -name ".venv" -exec rm -rf {} +
163-
@find clibs -name "uv.lock" -delete
158+
@# Clean clib build artifacts
159+
@find clib -type d -name "build" -exec rm -rf {} +
160+
@find clib -type d -name "dist" -exec rm -rf {} +
161+
@find clib -type d -name "*.egg-info" -exec rm -rf {} +
162+
@find clib -type d -name ".venv" -exec rm -rf {} +
163+
@find clib -name "uv.lock" -delete
164164
@# Clean all target directories in crates (in case they were built independently)
165165
@find crates -type d -name "target" -exec rm -rf {} +
166166
@find python -type d -name "target" -exec rm -rf {} +
@@ -182,12 +182,12 @@ clean-windows-ps:
182182
@powershell -Command "Get-ChildItem -Path . -Recurse -Directory -Filter '.hypothesis' | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue"
183183
@powershell -Command "Get-ChildItem -Path . -Recurse -Directory -Filter 'junit' | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue"
184184
@powershell -Command "Get-ChildItem -Path python -Recurse -File -Include '*.so','*.pyd' | Remove-Item -Force -ErrorAction SilentlyContinue"
185-
@# Clean clibs build artifacts
186-
@powershell -Command "Get-ChildItem -Path clibs -Recurse -Directory -Filter 'build' | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue"
187-
@powershell -Command "Get-ChildItem -Path clibs -Recurse -Directory -Filter 'dist' | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue"
188-
@powershell -Command "Get-ChildItem -Path clibs -Recurse -Directory -Filter '*.egg-info' | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue"
189-
@powershell -Command "Get-ChildItem -Path clibs -Recurse -Directory -Filter '.venv' | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue"
190-
@powershell -Command "Get-ChildItem -Path clibs -Recurse -File -Filter 'uv.lock' | Remove-Item -Force -ErrorAction SilentlyContinue"
185+
@# Clean clib build artifacts
186+
@powershell -Command "Get-ChildItem -Path clib -Recurse -Directory -Filter 'build' | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue"
187+
@powershell -Command "Get-ChildItem -Path clib -Recurse -Directory -Filter 'dist' | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue"
188+
@powershell -Command "Get-ChildItem -Path clib -Recurse -Directory -Filter '*.egg-info' | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue"
189+
@powershell -Command "Get-ChildItem -Path clib -Recurse -Directory -Filter '.venv' | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue"
190+
@powershell -Command "Get-ChildItem -Path clib -Recurse -File -Filter 'uv.lock' | Remove-Item -Force -ErrorAction SilentlyContinue"
191191
@# Clean all target directories in crates
192192
@powershell -Command "Get-ChildItem -Path crates -Recurse -Directory -Filter 'target' | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue"
193193
@powershell -Command "Get-ChildItem -Path python -Recurse -Directory -Filter 'target' | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue"
@@ -208,12 +208,12 @@ clean-windows-cmd:
208208
-@for /f "delims=" %%d in ('dir /s /b /ad .hypothesis 2^>nul') do @rd /s /q "%%d" 2>nul
209209
-@for /f "delims=" %%d in ('dir /s /b /ad junit 2^>nul') do @rd /s /q "%%d" 2>nul
210210
-@for /f "delims=" %%f in ('dir /s /b python\*.so python\*.pyd 2^>nul') do @del "%%f" 2>nul
211-
-@REM Clean clibs build artifacts
212-
-@for /f "delims=" %%d in ('dir /s /b /ad clibs\build 2^>nul') do @rd /s /q "%%d" 2>nul
213-
-@for /f "delims=" %%d in ('dir /s /b /ad clibs\dist 2^>nul') do @rd /s /q "%%d" 2>nul
214-
-@for /f "delims=" %%d in ('dir /s /b /ad clibs\*.egg-info 2^>nul') do @rd /s /q "%%d" 2>nul
215-
-@for /f "delims=" %%d in ('dir /s /b /ad clibs\.venv 2^>nul') do @rd /s /q "%%d" 2>nul
216-
-@for /f "delims=" %%f in ('dir /s /b clibs\uv.lock 2^>nul') do @del "%%f" 2>nul
211+
-@REM Clean clib build artifacts
212+
-@for /f "delims=" %%d in ('dir /s /b /ad clib\build 2^>nul') do @rd /s /q "%%d" 2>nul
213+
-@for /f "delims=" %%d in ('dir /s /b /ad clib\dist 2^>nul') do @rd /s /q "%%d" 2>nul
214+
-@for /f "delims=" %%d in ('dir /s /b /ad clib\*.egg-info 2^>nul') do @rd /s /q "%%d" 2>nul
215+
-@for /f "delims=" %%d in ('dir /s /b /ad clib\.venv 2^>nul') do @rd /s /q "%%d" 2>nul
216+
-@for /f "delims=" %%f in ('dir /s /b clib\uv.lock 2^>nul') do @del "%%f" 2>nul
217217
-@REM Clean all target directories in crates
218218
-@for /f "delims=" %%d in ('dir /s /b /ad crates\target 2^>nul') do @rd /s /q "%%d" 2>nul
219219
-@for /f "delims=" %%d in ('dir /s /b /ad python\target 2^>nul') do @rd /s /q "%%d" 2>nul
File renamed without changes.

crates/pecos-clib-pcg/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ let r3 = frandom(); // Random float in [0, 1)
2929

3030
## Implementation
3131

32-
This crate uses the `cc` build dependency to compile the existing C implementation from `clibs/pecos-rng/src/rng_pcg.c`
32+
This crate uses the `cc` build dependency to compile the existing C implementation from `clib/pecos-rng/src/rng_pcg.c`
3333
and provides safe Rust wrappers around the unsafe FFI functions.

crates/pecos-clib-pcg/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fn main() {
88
.unwrap()
99
.parent()
1010
.unwrap()
11-
.join("clibs")
11+
.join("clib")
1212
.join("pecos-rng");
1313

1414
let src_path = clib_path.join("src");

0 commit comments

Comments
 (0)