545 Commits

Author SHA1 Message Date
Gabriel Ferreira
d6725226eb bindings: Add dot before library extension
Prevents confusion between internet and internet-apps libraries when built in release mode
2025-08-25 22:34:02 +02:00
Gabriel Ferreira
891995d3d1 bindings: Improve library matching regex
It was incorrectly matching libbacktrace error messages
2025-08-25 22:34:01 +02:00
Gabriel Ferreira
8c4dbfc680 bindings: Change module header and library loading order 2025-06-02 07:14:09 +00:00
Gabriel Ferreira
b0ad23b318 bindings: (fixes #1187) Skip non-ns-3 libs with "ns3" in name 2025-04-12 16:15:51 +02:00
André Apitzsch
e84022668a bindings: resolve symlinks to avoid duplicate/conflicting entries
On some systems /usr/lib64 is a symlink to /usr/lib, and because
libraries are searched for in both paths, the libraries will be found
twice although they only exist once.
2025-02-25 09:32:24 +00:00
Yohei Kojima
393e1483d3 bindings: Support lib64/ when working with lockfile 2024-10-13 17:42:00 +00:00
Gabriel Ferreira
f53a1dd942 bindings: Speed up library scanning
Avoiding cmake cache, .gitlab-ci-local, windows injected paths drastically speeds up library scanning in slow filesystems
2024-05-19 10:08:50 +00:00
Gabriel Ferreira
7711e5290e bindings: Remove CreateObject/GetObject tricks 2024-05-19 10:08:50 +00:00
Gabriel Ferreira
4a0091ba6c bindings: Remove injected namespaces 2024-05-19 10:08:50 +00:00
Gabriel Ferreira
9c1f4fa654 bindings: Prevent module namespace injection in case the namespace exists 2024-04-21 17:02:07 +00:00
Gabriel Ferreira
55acc1e3c3 bindings: Load contrib modules when working with a lock file 2024-03-20 21:51:04 +00:00
Gabriel Ferreira
8f6a3413a4 style: apply black and isort 2023-11-20 21:30:01 -03:00
Gabriel Ferreira
af98671fbe style: apply style changes in preparation for black and isort 2023-11-20 21:30:01 -03:00
Gabriel Ferreira
1d980f33ce bindings: (fixes #948) Rollback the file encoding changes made to ns__init__.py
Fixes issue introduced in 20ae6fb2d0
2023-08-24 20:01:18 +00:00
Eduardo Almeida
20ae6fb2d0 python: Explicitly specify the encoding when opening files 2023-08-18 11:21:47 +00:00
Gabriel Ferreira
ec9d26acd9 bindings: package ns-3 as a pip wheel
Includes:
- Python examples to test Brite, Click and Openflow
- CI jobs for manylinux packaging of pip wheel
- Support for Linux distributions with lib and lib64 directories
- Configuration of RPATH not to require setting LD_LIBRARY_PATH

Signed-off-by: Gabriel Ferreira <gabrielcarvfer@gmail.com>
2023-05-29 22:36:32 -03:00
Tommaso Pecorella
a9223622da network: make addresses ConvertTo public and simplify python scripts 2022-11-25 01:36:26 +00:00
Gabriel Ferreira
f9eb5a7327 bindings: improve search of linked libraries and include directories 2022-11-16 02:51:34 -03:00
Gabriel Ferreira
5595f4dc9a bindings: fix module version checking 2022-10-29 00:28:38 +00:00
Gabriel Ferreira
b0e69fcbc8 bindings: use lru_cache to support older Python releases 2022-10-28 01:51:18 -03:00
Gabriel Ferreira
3ce922e41a bindings: handle development, candidate and release versions of ns-3 2022-10-28 01:50:49 -03:00
Gabriel Ferreira
12373157a4 bindings, docs: pass strings via char* to CommandLine.AddValue
And supplement memory-management issues section
2022-10-25 23:17:55 -03:00
Gabriel Ferreira
106f44af88 bindings: add more include directories of third-party libraries 2022-10-23 22:29:21 -03:00
Gabriel Ferreira
655b64205e bindings: extract linked libraries and add their include directories 2022-10-20 19:53:08 +00:00
Gabriel Ferreira
aee234645a build: remove bindings dependency on the lock, add opt-in installation 2022-10-12 13:13:11 -03:00
Gabriel Ferreira
a25e553fa2 build, bindings: check if cppyy is available at runtime and format cmake 2022-08-05 01:17:00 -03:00
Gabriel Ferreira
857363f05b bindings: fix lock file search 2022-08-04 02:08:05 -03:00
Gabriel Ferreira
36df81be90 bindings: replace pybindgen bindings support with cppyy bindings 2022-08-01 21:24:02 +00:00
Gabriel Ferreira
8ecec24191 bindings: fix formatting with uncrustify 2022-06-18 17:57:06 -03:00
Gabriel Ferreira
60e1e4032c fixing dead links 2022-06-18 17:57:05 -03:00
Tom Henderson
8378bc9c4b bindings: Add file to track required pybindgen version 2022-04-19 09:59:27 -07:00
Gabriel Ferreira
e32c177e45 build: remove waf files, tests and references 2022-02-21 22:08:45 -03:00
Gabriel Ferreira
9342082c53 bindings, build: fix bindings and visualizer build
Includes:
- scan python scripts
- run python scripts from ns3
- replace visualizer file copy with configure_file to prevent cmake refreshes
- replace ns__init__.py file copy with configure_file to prevent cmake refreshes
- fix bindings scanning with cmake
- pass include directories to modulegen for castxml consumption
- add missing parameters of Recv in python-unit-tests.py
- change apiscan targets from apiscan-module to libmodule-apiscan
- change bindings targets from module-bingings to libmodule-bindings
- scanning and bindings build tests
- scan scratch python scripts
- replace FindPython3 with FindPython to be compatible with CMake 3.10
- do not export private visual-simulator-impl.h
- do not export udp-socket-impl.h
- use .so suffix for bindings on Mac instead of .dylib
2022-01-26 01:53:28 -03:00
Stefano Avallone
942f57c762 bindings: Use C++17 to scan bindings, too 2021-11-21 20:39:10 +01:00
Tom Henderson
11e5476566 bindings: Remove stale file
This file predates the modular Python bindings code and is no longer used.
2021-09-09 17:44:26 -07:00
Tom Henderson
23cf8ce224 bindings: Update pybindgen version 2021-05-31 19:53:11 -07:00
Gabriel Arrobo
b2b1b08bf2 build: Enabled to run python scripts located in the contrib directory 2021-04-12 15:36:42 -07:00
Gabriel Arrobo
0ef0690969 build (fixes #360): Search relative path for bindings in src and contrib dir 2021-04-12 15:36:42 -07:00
Tom Henderson
b3051bc350 bindings: Update pybindgen version 2021-03-12 12:21:57 -08:00
Tom Henderson
f183790c0c bindings: Remove obsolete references to gccxmlparser 2021-03-10 09:41:53 -08:00
Tom Henderson
433fb603eb bindings: Update pybindgen version 2020-12-21 12:47:15 -08:00
Tom Henderson
de9771c6aa bindings: Update pybindgen version 2020-11-27 09:34:50 -08:00
Tom Henderson
81a173927c bindings: Update required pygccxml version 2020-10-08 13:32:06 -07:00
Tom Henderson
7a76d5fb8c bindings: Print out more helpful error message 2020-10-08 11:58:48 -07:00
Tom Henderson
f7871790c3 bindings: Update pybindgen version 2020-10-08 10:37:29 -07:00
Tom Henderson
87966d99d2 bindings: Update pybindgen version 2020-05-09 13:18:50 -07:00
Tom Henderson
d7791793bd bindings: Update pybindgen version 2020-02-09 14:49:39 -08:00
Tom Henderson
cac2d19263 bindings: Update pybindgen version 2019-09-29 18:00:26 -07:00
Tom Henderson
0258405cc6 build: Upgrade scripts to Python 3 (many changes due to Ankit Deepak) 2019-08-12 16:55:34 -07:00
Tom Henderson
2b10629465 bindings: Update package version numbers for API scanning 2019-08-12 16:41:07 -07:00