Coder Social home page Coder Social logo

Comments (7)

clemens-fricke avatar clemens-fricke commented on June 20, 2024

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.

clemens-fricke avatar clemens-fricke commented on June 20, 2024

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.

clemens-fricke avatar clemens-fricke commented on June 20, 2024

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.

j042 avatar j042 commented on June 20, 2024

Maybe it is time to move to skbuild

from splinepy.

FSchwar avatar FSchwar commented on June 20, 2024

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.

j042 avatar j042 commented on June 20, 2024

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.

FSchwar avatar FSchwar commented on June 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.