rdkit_chem 2025.09.3.1 → 2025.09.3.2

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +40 -0
  3. data/lib/rdkit_chem/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a055b61c798bbae88ef7fe5928fd07eb5023b71aeafa87592fb177cb97408c9
4
- data.tar.gz: 36daba588c70fe684bb29d91a39d564a31e29abcc73c6564d242862653931f57
3
+ metadata.gz: eb84e9eb9b23425a697da1935d2a58fde15b5b184f9b0f0605340577f9296f16
4
+ data.tar.gz: 3ba3ea75e71cf6f86d82008d297a6409494a09e152b7049077245eb641626eaf
5
5
  SHA512:
6
- metadata.gz: dd760ea3918541f123cbff847d97ae78845f84512cd324613c0267b7251aab62513df3c850741c13916aaabe5a7d849a680d96063cf074d72394a7e54433c166
7
- data.tar.gz: ed46906319555b721c0c35fac731f9a25a358da647f0df17434f733ccd892f03622619def1124a820ca2568c736f88d2f84cf9897fc822ff77e93c9a503e17e0
6
+ metadata.gz: f2001ea207f0a2e4484595d27ce3fe5f74d2e0acbf3b58caf204169a09b928542fccabf544a424653175af1e272b73378eaac81db962b26b8ff1ece82219bd43
7
+ data.tar.gz: 5c859291de10e2a2355068b3d57619d7e56e3c248c607b3df413d46f4e9fd29437bfc5cc1914fbb70e2daa319da2889b790b2a205c6087a2ebdaf1faffcb6cdd
data/Rakefile CHANGED
@@ -10,6 +10,12 @@ require 'rdkit_chem/version'
10
10
  VERSION = RDKitChem::GEMVERSION
11
11
  NATIVE_DIR = 'rdkit_chem/lib'
12
12
 
13
+ # System libraries that need to be bundled for portability
14
+ BUNDLED_SYSTEM_LIBS = %w[
15
+ libboost_serialization.so*
16
+ libboost_iostreams.so*
17
+ ].freeze
18
+
13
19
  desc 'Run tests'
14
20
  Rake::TestTask.new(:test) do |t|
15
21
  t.libs << 'lib'
@@ -69,6 +75,40 @@ task :build_native do
69
75
  puts "\nBuilt: rdkit_chem-#{VERSION}-#{Gem::Platform.local}.gem"
70
76
  end
71
77
 
78
+ desc 'Bundle system libraries (Boost) into native directory'
79
+ task :bundle_system_libs do
80
+ so_file = File.join(NATIVE_DIR, 'RDKitChem.so')
81
+ unless File.exist?(so_file)
82
+ abort "ERROR: #{so_file} not found"
83
+ end
84
+
85
+ puts "Finding and bundling system library dependencies..."
86
+
87
+ # Find library paths using ldd
88
+ ldd_output = `ldd #{so_file} 2>/dev/null`
89
+
90
+ BUNDLED_SYSTEM_LIBS.each do |lib_pattern|
91
+ lib_name = lib_pattern.gsub('*', '')
92
+ # Extract actual library path from ldd output
93
+ match = ldd_output.match(/#{Regexp.escape(lib_name)}[^\s]* => ([^\s]+)/)
94
+ if match
95
+ src_path = match[1]
96
+ if File.exist?(src_path)
97
+ dest = File.join(NATIVE_DIR, File.basename(src_path))
98
+ unless File.exist?(dest)
99
+ FileUtils.cp(src_path, dest, verbose: true)
100
+ else
101
+ puts "Already exists: #{dest}"
102
+ end
103
+ end
104
+ else
105
+ puts "WARNING: Could not find #{lib_pattern} in ldd output"
106
+ end
107
+ end
108
+
109
+ puts "Done bundling system libraries."
110
+ end
111
+
72
112
  desc 'Apply RPATH fix to existing native extension (no recompile needed)'
73
113
  task :fix_rpath do
74
114
  so_file = File.join(NATIVE_DIR, 'RDKitChem.so')
@@ -1,4 +1,4 @@
1
1
  module RDKitChem
2
2
  VERSION = '2025.09.3'.freeze
3
- GEMVERSION = VERSION + '.1'
3
+ GEMVERSION = VERSION + '.2'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdkit_chem
3
3
  version: !ruby/object:Gem::Version
4
- version: 2025.09.3.1
4
+ version: 2025.09.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - An Nguyen