GithubHelp home page GithubHelp logo

Comments (5)

picca avatar picca commented on September 17, 2024

Inded It would be nice to have the same for guiqwt-tests :)

from guidata.

PierreRaybaut avatar PierreRaybaut commented on September 17, 2024

I propose to rename them this way:
guidata-tests-py2 and guidata-tests-py3, respectively for Python 2 and Python 3

from guidata.

PierreRaybaut avatar PierreRaybaut commented on September 17, 2024

Ok, I guess that you would have to patch setup.py when building the debian package?

Because I don't know how to (and if it's even possible to) build a single source package containing both scripts (guidata-tests-py2 and guidata-tests-py3) and install the script that match target Python version. As far as I know, the only way to do that would be to build specific source packages (one for Python 2, one for Python 3).

from guidata.

picca avatar picca commented on September 17, 2024

In spyder I think that the trick is implented
in the setup.py you have

# Check for Python 3
PY3 = sys.version_info[0] == 3
# NOTE: the '[...]_win_post_install.py' script is installed even on non-Windows
# platforms due to a bug in pip installation process (see Issue 1158)
SCRIPTS = ['%s_win_post_install.py' % NAME]
if PY3 and sys.platform.startswith('linux'):
    SCRIPTS.append('spyder3')
else:
    SCRIPTS.append('spyder')

Is it what you need ?

from guidata.

PierreRaybaut avatar PierreRaybaut commented on September 17, 2024

Nevermind... I was tired and somehow forgot about the distinction between MANIFEST.in and setup.py: by including all the scripts (linux, Windows, Python 2, Python 3) in MANIFEST.in, files will be included in source package even if setup.py does not include them (because setup.py will include only the files corresponding to the Python version used to build the package).

from guidata.

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.