Giter VIP home page Giter VIP logo

Comments (5)

peterjc avatar peterjc commented on September 26, 2024

Note this worked fine in appveyor.yml for Windows testing:

    - cd %REPO_DIR%\\Tests
    - "%CMD_IN_ENV% python run_tests.py --offline"

from multibuild.

matthew-brett avatar matthew-brett commented on September 26, 2024

Right - well - sort of - multibuild specifically changes into a temporary directory in order to run the tests, in order to make sure that the tests are running on the installed code not the source code.

This can get a bit ugly - for example, I had to copy lots of matplotlib files from the source to the installation directory in order to run the tests:

https://github.com/MacPython/matplotlib-wheels/blob/master/config.sh#L54

The problem is that, if you don't do this, it's difficult to know if you've properly tested what the user will get, when they install the wheel, but not the source.

from multibuild.

peterjc avatar peterjc commented on September 26, 2024

That looks like a very relevant example - thank you. I would ideally do much the same here, i.e. copy/link the test files into the temporary directory where there is no copy of the source code or build files present in a sister folder to confuse things.

So assuming we are in an arbitrary temporary directory, how best to determine the original source code folder? i.e. Can I assume ../project-name as used in MPL_SRC_DIR=../matplotlib here:

https://github.com/MacPython/matplotlib-wheels/blob/master/config.sh#L52

from multibuild.

matthew-brett avatar matthew-brett commented on September 26, 2024

Yes, you can assume that. The relevant set-up code is in a tiny function called install_run:

https://github.com/matthew-brett/multibuild/blob/master/common_utils.sh#L241

Like any other bash function, you can override that in your config.sh, if you like.

from multibuild.

peterjc avatar peterjc commented on September 26, 2024

Thank you. I still have some test oddities from the slightly different environment to resolve (unrelated to this particular issue) before exploring this...

from multibuild.

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.