| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <Project> | ||
| <PropertyGroup> | ||
| <VersionPrefix>3.0.0</VersionPrefix> | ||
| <AssemblyCopyright>Copyright (c) 2006-2020 The Contributors of the Python.NET Project</AssemblyCopyright> | ||
| <AssemblyCompany>pythonnet</AssemblyCompany> | ||
| <AssemblyProduct>Python.NET</AssemblyProduct> | ||
| <LangVersion>7.3</LangVersion> | ||
| </PropertyGroup> | ||
| <ItemGroup> | ||
| <PackageReference Include="Microsoft.CSharp" Version="4.7.0" /> | ||
| <PackageReference Include="NonCopyableAnalyzer" Version="0.6.0"> | ||
| <PrivateAssets>all</PrivateAssets> | ||
| <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
| </PackageReference> | ||
| </ItemGroup> | ||
| <Import Project="$(MSBuildThisFileDirectory)configured.props" Condition="Exists('$(MSBuildThisFileDirectory)configured.props')" /> | ||
| </Project> |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| """ | ||
| Legacy Python.NET loader for backwards compatibility | ||
| """ | ||
|
|
||
| def _get_netfx_path(): | ||
| import os, sys | ||
|
|
||
| if sys.maxsize > 2 ** 32: | ||
| arch = "amd64" | ||
| else: | ||
| arch = "x86" | ||
|
|
||
| return os.path.join(os.path.dirname(__file__), "pythonnet", "netfx", arch, "clr.pyd") | ||
|
|
||
|
|
||
| def _get_mono_path(): | ||
| import os, glob | ||
|
|
||
| paths = glob.glob(os.path.join(os.path.dirname(__file__), "pythonnet", "mono", "clr.*so")) | ||
| return paths[0] | ||
|
|
||
|
|
||
| def _load_clr(): | ||
| import sys | ||
| from importlib import util | ||
|
|
||
| if sys.platform == "win32": | ||
| path = _get_netfx_path() | ||
| else: | ||
| path = _get_mono_path() | ||
|
|
||
| del sys.modules[__name__] | ||
|
|
||
| spec = util.spec_from_file_location("clr", path) | ||
| clr = util.module_from_spec(spec) | ||
| spec.loader.exec_module(clr) | ||
|
|
||
| sys.modules[__name__] = clr | ||
|
|
||
|
|
||
| _load_clr() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [build-system] | ||
| requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4", "pycparser"] | ||
| build-backend = "setuptools.build_meta" |
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.