pycall 0.1.0.alpha.20170329 → 0.1.0.alpha.20170403

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc7a3092f003ffea81240b8689ec4610e11658e4
4
- data.tar.gz: 980774dcb4e1193dd571bcb0b0ab89fc00d3c135
3
+ metadata.gz: f71e741e2100584c7f767b479215f6738a1c2766
4
+ data.tar.gz: 86c1b2baafb99c7a4252bb24837b9b43ca3dc445
5
5
  SHA512:
6
- metadata.gz: 0af75af746d1d74be468f267af346267538f399f4f1a625db67542c8331c59218f058f99e3d30e29d121b291c0b49f992a6f299b9df3b2a5d63a4d752bad5e6d
7
- data.tar.gz: b0c75fddc87eff596555d2625fa6b299b296e653e11834ccb0788fe3cf306278a418a44fb9748708b7e7a806c803a6dfce097a2c890d8e52c64e2998e4841f31
6
+ metadata.gz: 16301b5fbff74a7beff8f64a1937a15868edd9666e89219f935d293a6f80f5b1aa9df64619a9a6addd0ef825349262b37aa4f19a7aff73d32a9e47140a879889
7
+ data.tar.gz: 1dc51fde23af83ae1dd7a161035f53890e4d52d08bc0ca05daf95d7cc23dc89c0b4a9ca86f687fc52a422fdf8fe269e824017b12be7a89c316cdcf90a04f23ab
@@ -5,6 +5,11 @@ module PyCall
5
5
 
6
6
  PyCall::LibPython.Py_InitializeEx(0)
7
7
 
8
+ FFI::MemoryPointer.new(:pointer, 1) do |argv|
9
+ argv.write_pointer(FFI::MemoryPointer.from_string(""))
10
+ PyCall::LibPython.PySys_SetArgvEx(0, argv, 0)
11
+ end
12
+
8
13
  @builtin = LibPython.PyImport_ImportModule(PYTHON_VERSION < '3.0.0' ? '__builtin__' : 'builtins')
9
14
  end
10
15
 
@@ -176,6 +176,7 @@ module PyCall
176
176
  attach_function :Py_GetVersion, [], :string
177
177
  attach_function :Py_InitializeEx, [:int], :void
178
178
  attach_function :Py_IsInitialized, [], :int
179
+ attach_function :PySys_SetArgvEx, [:int, :pointer, :int], :void
179
180
 
180
181
  # Reference count
181
182
 
@@ -1,3 +1,3 @@
1
1
  module PyCall
2
- VERSION = "0.1.0.alpha.20170329"
2
+ VERSION = "0.1.0.alpha.20170403"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pycall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.alpha.20170329
4
+ version: 0.1.0.alpha.20170403
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenta Murata
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-29 00:00:00.000000000 Z
11
+ date: 2017-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi