Skip to content

Commit

Permalink
Merge pull request #46 from jogerh/Venv
Browse files Browse the repository at this point in the history
Allow sharing virtual python environment
  • Loading branch information
supersega authored Dec 19, 2021
2 parents be09499 + b4104e0 commit fef0fa2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions PyComServer/PyComServer.pyproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<LaunchProvider>Standard Python launcher</LaunchProvider>
<CommandLineArguments>/regserver</CommandLineArguments>
<EnableNativeCodeDebugging>False</EnableNativeCodeDebugging>
<InterpreterId>MSBuild|env|$(MSBuildProjectFullPath)</InterpreterId>
<InterpreterId>MSBuild|buildenv|$(MSBuildProjectFullPath)</InterpreterId>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -33,10 +33,10 @@
<Content Include="requirements.txt" />
</ItemGroup>
<ItemGroup>
<Interpreter Include="env\">
<Id>env</Id>
<Interpreter Include="..\Build\buildenv\">
<Id>buildenv</Id>
<Version>3.9</Version>
<Description>env (Python 3.9 (64-bit))</Description>
<Description>buildenv (Python 3.9 (64-bit))</Description>
<InterpreterPath>Scripts\python.exe</InterpreterPath>
<WindowsInterpreterPath>Scripts\pythonw.exe</WindowsInterpreterPath>
<PathEnvironmentVariable>PYTHONPATH</PathEnvironmentVariable>
Expand Down
2 changes: 1 addition & 1 deletion PyComServer/RegPyComServer.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pushd %~dp0

@echo on

py -3 -m venv ..\Build\buildenv || exit /b 1
py -3.9 -m venv ..\Build\buildenv || exit /b 1
call ..\Build\buildenv\Scripts\Activate.bat || exit /b 1

python -m pip install -r requirements.txt || exit /b 1
Expand Down

0 comments on commit fef0fa2

Please sign in to comment.