Commit Graph

27 Commits

Author SHA1 Message Date
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
Gustavo J. A. M. Carneiro
38e2f863c9 Use the waf 'copy' tool to copy __init__.py files
They had to be renamed to work around waf limitations.
2011-03-28 14:56:08 +01:00