Comments (3)
-j
is an option for make
, not cmake
. On windows, make is not used, so the build system (the actual build system, not cmake, which is the build system generator) complains.
One solution would be to use Ninja as the build system, which is supported on all platforms and available from PyPI, so it can be put into the build-dependencies
in pyproject.toml
.
(scikit-build-core also uses ninja)
Ninja parallizes the build by default to all available cores
from proposal.
A new issue that seemed to have emerged on Windows:
pip install
does not copy the created *.pyd file to the site-packages folder, so the proposal library can not be found...
The verbose output from pip install . --verbose
looks like:
-- Build files have been written to: C:/Users/Jean-Marco/software/PROPOSAL/build/temp.win-amd64-cpython-311/Release
MSBuild version 17.5.1+f6fdcf537 for .NET Framework
1>Checking Build System
Building Custom Rule C:/Users/Jean-Marco/software/PROPOSAL/src/PROPOSAL/CMakeLists.txt
PROPOSAL.vcxproj -> C:\Users\Jean-Marco\software\PROPOSAL\build\temp.win-amd64-cpython-311\Release\src\PROPOSAL\Release\PROPOSAL.lib
Building Custom Rule C:/Users/Jean-Marco/software/PROPOSAL/src/pyPROPOSAL/CMakeLists.txt
pyPROPOSAL.vcxproj -> C:\Users\Jean-Marco\software\PROPOSAL\build\temp.win-amd64-cpython-311\Release\src\pyPROPOSAL\Release\proposal.cp311-win_amd64.pyd
Building Custom Rule C:/Users/Jean-Marco/software/PROPOSAL/CMakeLists.txt
Using conan to install dependencies. Set environment variable NO_CONAN to skip conan.
installing to build\bdist.win-amd64\wheel
running install
running install_lib
creating build\bdist.win-amd64\wheel
running install_egg_info
running egg_info
writing proposal.egg-info\PKG-INFO
writing dependency_links to proposal.egg-info\dependency_links.txt
writing top-level names to proposal.egg-info\top_level.txt
reading manifest file 'proposal.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '.git*' found anywhere in distribution
adding license file 'LICENSE.md'
writing manifest file 'proposal.egg-info\SOURCES.txt'
Copying proposal.egg-info to build\bdist.win-amd64\wheel\.\proposal-7.6.2-py3.11.egg-info
running install_scripts
C:\Users\Jean-Marco\AppData\Local\Temp\pip-build-env-bvlxvnbd\overlay\Lib\site-packages\wheel\bdist_wheel.py:108: RuntimeWarning: Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
if get_flag("Py_DEBUG", hasattr(sys, "gettotalrefcount"), warn=(impl == "cp")):
creating build\bdist.win-amd64\wheel\proposal-7.6.2.dist-info\WHEEL
creating 'C:\Users\Jean-Marco\AppData\Local\Temp\pip-wheel-3meb__xf\.tmp-rg4drv7_\proposal-7.6.2-cp311-cp311-win_amd64.whl' and adding 'build\bdist.win-amd64\wheel' to it
adding 'proposal-7.6.2.dist-info/LICENSE.md'
adding 'proposal-7.6.2.dist-info/METADATA'
adding 'proposal-7.6.2.dist-info/WHEEL'
adding 'proposal-7.6.2.dist-info/top_level.txt'
adding 'proposal-7.6.2.dist-info/RECORD'
removing build\bdist.win-amd64\wheel
Building wheel for proposal (pyproject.toml) ... done
Created wheel for proposal: filename=proposal-7.6.2-cp311-cp311-win_amd64.whl size=7504 sha256=195294b9012e9d3e811bfac390894d5aa004ee424977897413925f83b9f873a4
Stored in directory: C:\Users\Jean-Marco\AppData\Local\Temp\pip-ephem-wheel-cache-a2pwwtdf\wheels\aa\e1\b6\7dbacbe9e10eaae3d5cb7dff8b96127564cbc96c6dbd6ba76d
Successfully built proposal
Installing collected packages: proposal
Successfully installed proposal-7.6.2
My workaround so far was to copy the PROPOSAL\build\temp.win-amd64-cpython-311\Release\src\pyPROPOSAL\Release\proposal.cp311-win_amd64.pyd
file manually to the site-packages folder, but this is not a viable solution... 😅
I don't know how to tell setup.py to add this file -- and I also believed that this has worked earlier, so something about Windows must have changed...?
from proposal.
I would suggest to try switching to scikit-build-core and not apply further hacks to the current cmake code in setup.py
from proposal.
Related Issues (20)
- Call to proposal.photoproduction.PhotonNucleonCrossSection crashes HOT 1
- conan error when trying to install proposal on Ubuntu 20.04/22.04 HOT 4
- Serialization of `Secondaries` class
- Prepare PROPOSAL for conan 2.0 HOT 3
- Add rare processes to default cross section list HOT 1
- Add particle-dependent defaults for secondary calculators
- `conan export` locally not working
- Moliere scattering generates non-normalized directional vectors for very large deflections
- Alternative treatment of Multiple scattering via Random Hinge
- make interactions problem for specific energy cuts HOT 2
- undefined symbol: _ZN5boost10filesystem4pathdVERKS1_
- Changing the Propagation Medium Density HOT 1
- Importing proposal in conda not working on ubuntu? HOT 12
- Electron-positron pair production: Numerical instable energy asymmetry sampling HOT 2
- Add version number (or something equivalent) to hashes? HOT 2
- Adapt kinetmatic limits of `ForElectronPositron`
- Different behavior `PropagationUtility{Integral,Interpolant}` in `GetUpperLimit`
- Introduce read only-path for tables? HOT 1
- Selection of tau decay modes HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proposal.