Open sistemicorp opened 4 days ago
okay, I fixed it, already, needed -m
,
(.venv) C:\git\shedskin>python -m shedskin build --conan test
Maybe the docs can be updated, or just close this, this solution is searchable now.
Next bump in the road,
...
-- Configuring done (0.3s)
-- Generating done (0.0s)
-- Build files have been written to: C:/git/shedskin/build
bld_cmd: cmake --build C:\git\shedskin\build
MSBuild version 17.7.2+d6990bcfa for .NET Framework
1>Checking Build System
translating test.py to exe
'shedskin' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(249,5): error MSB8066: Custom build for 'C:\git\shedskin\build\CMa
keFiles\f0254fdbe7ebff048efd60e26cd13bd8\test.cpp.rule;C:\git\shedskin\CMakeLists.txt' exited with code 9009. [C:\git\shedskin\build\test-exe.vcxproj]
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\git\shedskin\shedskin\__main__.py", line 16, in <module>
run()
File "C:\git\shedskin\shedskin\__main__.py", line 12, in run
Shedskin.commandline()
File "C:\git\shedskin\shedskin\__init__.py", line 406, in commandline
ss.build()
File "C:\git\shedskin\shedskin\__init__.py", line 192, in build
builder.build()
File "C:\git\shedskin\shedskin\cmake.py", line 691, in build
self.process(run_tests=False)
File "C:\git\shedskin\shedskin\cmake.py", line 816, in process
self.cmake_build(bld_options)
File "C:\git\shedskin\shedskin\cmake.py", line 671, in cmake_build
assert os.system(bld_cmd) == 0
^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
I think the problem is 'shedskin' is not recognized as an internal or external command
Digging into it...
Maybe this file helps debug,
test-exe.vcxproj.zip
sorry for the late reaction! :S and thanks for the feedback.
did you try installing shedskin using 'pip install .'..? using 'setup.py install' is deprecated, hence the warnings.
let's update the documentation for this in any case, since you are not the first to run into this.
Struggling to install and build test.py on Windows. I search all issues.
Using Python 3.12.
I did install
conan==1.62.0
.The linux instructions have
sudo apt-get install shedskin
which there is no equivalent on Windows. So I clonedshedskin
repo.Was able to run setup.py, and it seemed to finish,
But cannot run the build,
As a side note, got two warnings when running
setup.py
,