Comments (7)
Sorry for the late answer. Calling setup.py
is being deprecated apparently. Just yesterday I found a workaround for the "--minimal" option that needs to be added during most installs.
After a quick look around I found this blog post:
https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html#summary
It would be great if @j042 @jzwar could also look into it so that we can together decide if this is something we need to update or if we can live with the current -- now apparently deprecated -- workflow.
from splinepy.
From what I read we can just go to pip install .
or pip install -e .
. If the --minimal
option is needed the following can be appended --install-option="--minimal"
.
For package build
there seems to be a build
package which can also use the configurations in existing setup.py
files. (Hopefully just drop-in replacement)
But as I understand it, it might be better to move towards a pyproject.toml
approach (the primary way to use the build
package) in the future.
from splinepy.
Ok after, (somehow) my pip updated, the previous --install-option
is no longer available for the pip install
command. But now you can do --config-setting="--build-option=--minimal"
.
I am not sure why they are abstracting it further and further.
from splinepy.
Maybe it is time to move to skbuild
from splinepy.
I am also getting an error when trying to build splinepy (WSL, Ubuntu, python 3.9).
Tried the following command:
python setup.py develop --config-setting="--build-option=--minimal"
and got following error:
************* build options ************
{
cmake_args: {
--verbose_make: -DSPLINEPY_VERBOSE_MAKE=OFF
--minimal: -DSPLINEPY_MORE=ON
--enable_warning: -DSPLINEPY_ENABLE_WARNINGS=OFF
--no_explicit: -DSPLINEPY_BUILD_EXPLICIT=ON
}
build_args: {
--serial_build: -j 12
}
--debug : False
}
****************************************
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: option --config-setting not recognized
Also tried:
python setup.py develop --install-option="--minimal"
but got the same type of errors (option ... not recognized
)
and with:
python setup.py develop --minimal --enable_warning
i got:
************* build options ************
{
cmake_args: {
--verbose_make: -DSPLINEPY_VERBOSE_MAKE=OFF
--minimal: -DSPLINEPY_MORE=OFF
--enable_warning: -DSPLINEPY_ENABLE_WARNINGS=ON
--no_explicit: -DSPLINEPY_BUILD_EXPLICIT=ON
}
build_args: {
--serial_build: -j 12
}
--debug : False
}
****************************************
running develop
/home/fschwar/miniconda3/envs/p39/lib/python3.9/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
/home/fschwar/miniconda3/envs/p39/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
running egg_info
error: Cannot update time stamp of directory 'splinepy.egg-info'
Do you have any further ideas?
from splinepy.
Do you have any further ideas?
I am working on updated build now, PR should be ready some time soon.
python setup.py develop --minimal
should still work. Have you tried deleting all the previous build artifacts?
from splinepy.
Hm, I´m getting the warnings/error like mentioned above in the last section.
But i didn't try to delete anything prior to building it - how would I delete those artifacts?
from splinepy.
Related Issues (20)
- Change unittest to pytest
- numpy DeprecationWarning in helpme/fit.py HOT 2
- Inconsistent variables for export function in io module HOT 2
- inplace knot vector update
- Pictures in documentation HOT 1
- Error in example show_microstructures - DoubleLattice
- Issue with Matrix solve HOT 4
- Issues with Proximity HOT 4
- Test Microstructure
- Error in microstructure with normal splinepy install HOT 2
- `boundary_multipatch` seems to be deleting interface information HOT 1
- Bezier Extraction issues HOT 4
- Bezier Extraction matrices for 0th degree spline
- `TileBase` missing `create_tile` interface HOT 1
- inconsistency in fitting HOT 3
- multipatch boundary id magic number HOT 2
- Swept Surface
- revolve with angle=-180
- xml io issues for CATS splines HOT 9
- migration to numpy 2.0 HOT 1
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 splinepy.