8000 Merge pull request #35 from Martin-Molinero/bug-initialization-hang · saaib/pythonnet@9e29755 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9e29755

Browse files
authored
Merge pull request QuantConnect#35 from Martin-Molinero/bug-initialization-hang
Fix initialization hang
2 parents 8ba190b + b9242d2 commit 9e29755

File tree

7 files changed

+12
-6
lines changed

7 files changed

+12
-6
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 1.0.5.23
2+
current_version = 1.0.5.24
33
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<dev>\d+))?
44
serialize =
55
{major}.{minor}.{patch}.{release}{dev}

conda.recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package:
22
name: pythonnet
3-
version: "1.0.5.23"
3+
version: "1.0.5.24"
44

55
build:
66
skip: True # [not win]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ def run(self):
485485

486486
setup(
487487
name="pythonnet",
488-
version="1.0.5.23",
488+
version="1.0.5.24",
489489
description=".Net and Mono integration for Python",
490490
url='https://pythonnet.github.io/',
491491
license='MIT',

src/SharedAssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
// Version Information. Keeping it simple. May need to revisit for Nuget
2626
// See: https://codingforsmarties.wordpress.com/2016/01/21/how-to-version-assemblies-destined-for-nuget/
2727
// AssemblyVersion can only be numeric
28-
[assembly: AssemblyVersion("1.0.5.23")]
28+
[assembly: AssemblyVersion("1.0.5.24")]

src/clrmodule/ClrModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static void initclr()
5353
{
5454
#if USE_PYTHON_RUNTIME_VERSION
5555
// Has no effect until SNK works. Keep updated anyways.
56-
Version = new Version("1.0.5.23"),
56+
Version = new Version("1.0.5.24"),
5757
#endif
5858
CultureInfo = CultureInfo.InvariantCulture
5959
};

src/runtime/assemblymanager.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,12 @@ internal static void ScanAssembly(Assembly assembly)
344344
// gather a list of all of the namespaces contributed to by
345345
// the assembly.
346346

347+
// skip this assembly, it causes 'GetTypes' call to hang
348+
if (assembly.FullName.StartsWith("System.Windows.Forms"))
349+
{
350+
return;
351+ }
352+
347353
Type[] types = assembly.GetTypes();
348354
foreach (Type t in types)
349355
{

src/runtime/resources/clr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Code in this module gets loaded into the main clr module.
33
"""
44

5-
__version__ = "1.0.5.23"
5+
__version__ = "1.0.5.24"
66

77

88
class clrproperty(object):

0 commit comments

Comments
 (0)
0