Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Build single Python.Runtime.dll for all platforms#1365

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Changes from1 commit
Commits
Show all changes
21 commits
Select commitHold shift + click to select a range
909ed1f
dropped net40 target from modern projects
lostmsuNov 30, 2020
47e926e
use .NET Standard 2.0 platform detection features
lostmsuDec 2, 2020
21683b3
drop NativeCodePage alltogether
lostmsuDec 2, 2020
972c41d
WIP: use C# 9 function pointers for PInvoke
lostmsuDec 4, 2020
51e5184
allow setting PythonDLL
lostmsuDec 10, 2020
2498d47
always explicitly specify the way strings are marshaled
lostmsuJan 22, 2021
70fc803
CI: figure out DLL name from environment
lostmsuJan 22, 2021
28a5dab
use Roslyn preview in CI
lostmsuJan 22, 2021
c75229a
fixed Linux and Mac DLL loaders breaking dll path
lostmsuJan 22, 2021
a0a1dc1
correctly detect DLL on *nix when running from Python
lostmsuJan 22, 2021
1b88783
Windows library loader: add support for hModule == 0
lostmsuJan 22, 2021
2c1aaef
fix dll loading in tests
lostmsuJan 22, 2021
39e41d0
mentiond PythonDLL in changelog
lostmsuJan 22, 2021
17040fe
set PYDLL in AppVeyor
lostmsuJan 22, 2021
b7410b6
revert automatically added 'm' suffix for *nix default dll name
lostmsuJan 22, 2021
275cae9
specify full DLL name instead of PYVER in GH Actions
lostmsuJan 22, 2021
b4cb37e
use Microsoft.Net.Compilers.Toolset instead of Microsoft.Net.Compilers
lostmsuJan 23, 2021
f68e581
in CI MacOS python DLL has 'm' suffix
lostmsuJan 23, 2021
cda604a
only set PYTHONNET_PYDLL for test runs from .NET
lostmsuJan 23, 2021
3982892
workaround for pytest/clr module not preloading python C API library
lostmsuJan 23, 2021
a6cbe20
addressed a few code comments
lostmsuJan 26, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
use .NET Standard 2.0 platform detection features
  • Loading branch information
@lostmsu
lostmsu committedJan 28, 2021
commit47e926ed39fec384a4b61d298285f86e40a0bc34
18 changes: 11 additions & 7 deletionssrc/runtime/platform/NativeCodePage.cs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -8,17 +8,20 @@ class NativeCodePageHelper
{
/// <summary>
/// Initialized by InitializeNativeCodePage.
///
/// <para>
/// This points to a page of memory allocated using mmap or VirtualAlloc
/// (depending on the system), and marked read and execute (not write).
/// Very much on purpose, the page is *not* released on a shutdown and
/// is instead leaked. See the TestDomainReload test case.
///
/// </para>
/// <para>
/// The contents of the page are two native functions: one that returns 0,
/// one that returns 1.
///
/// </para>
/// <para>
/// If python didn't keep its gc list through a Py_Finalize we could remove
/// this entire section.
/// </para>
/// </summary>
internal static IntPtr NativeCodePage = IntPtr.Zero;

Expand DownExpand Up@@ -95,10 +98,11 @@ public static NativeCode Active
};

/// <summary>
/// Code for X86.
///
///<para>Code for X86.</para>
/// <para>
/// It's bitwise identical to X86_64, so we just point to it.
/// <see cref="NativeCode.X86_64"/>
/// </para>
/// </summary>
public static readonly NativeCode I386 = X86_64;
}
Expand DownExpand Up@@ -145,7 +149,7 @@ public void SetReadExec(IntPtr mappedMemory, int numBytes)
}
}

classUnixMemoryMapper : IMemoryMapper
classPosixMemoryMapper : IMemoryMapper
{
const int PROT_READ = 0x1;
const int PROT_WRITE = 0x2;
Expand DownExpand Up@@ -196,7 +200,7 @@ internal static IMemoryMapper CreateMemoryMapper()
else
{
// Linux, OSX, FreeBSD
return newUnixMemoryMapper();
return newPosixMemoryMapper();
}
}

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp