GithubHelp home page GithubHelp logo

Comments (11)

theacodes avatar theacodes commented on July 27, 2024

I think the idea of preserving the arch through all commands is the right thing to do, but what's the right way to do it?

from nox.

dhermes avatar dhermes commented on July 27, 2024

I think the "right" way is:

$ arch -32 ...
$ arch -i386 ...  # Synonym for -32
$ arch -64 ...
$ arch -x86_64 ...  # Synonym for -64

from nox.

theacodes avatar theacodes commented on July 27, 2024

as a prefix to literally everything we execute?

from nox.

dhermes avatar dhermes commented on July 27, 2024

Only on OS X, but maybe? It's possible there is a way to "inherit"?

from nox.

theacodes avatar theacodes commented on July 27, 2024

It's possible there is a way to "inherit"?

That would be ideal. It seems weird to me that a 32bit process is able to create a 64bit subprocess (considering exec is forking).

from nox.

dhermes avatar dhermes commented on July 27, 2024

It turns out a similar feature might be relevant on Windows:

C:\Users\dhermes\Desktop>py -2.7-32 info.py
exe: C:\Python27-32\python.exe
sys.maxsize == 2**(31) - 1

C:\Users\dhermes\Desktop>py -2.7 info.py
exe: C:\Python27\python.exe
sys.maxsize == 2**(63) - 1

C:\Users\dhermes\Desktop>py -3.5-32 info.py
exe: C:\Users\dhermes\AppData\Local\Programs\Python\Python35-32\python.exe
sys.maxsize == 2**(31) - 1

C:\Users\dhermes\Desktop>py -3.5 info.py
exe: C:\Users\dhermes\AppData\Local\Programs\Python\Python35\python.exe
sys.maxsize == 2**(63) - 1

C:\Users\dhermes\Desktop>py -3.6-32 info.py
exe: C:\Users\dhermes\AppData\Local\Programs\Python\Python36-32\python.exe
sys.maxsize == 2**(31) - 1

C:\Users\dhermes\Desktop>py -3.6 info.py
exe: C:\Users\dhermes\AppData\Local\Programs\Python\Python36\python.exe
sys.maxsize == 2**(63) - 1

where

# info.py
import sys


def main():
    print('exe: {}'.format(sys.executable))
    if sys.maxsize == 2**31 - 1:
        print('sys.maxsize == 2**(31) - 1')
    elif sys.maxsize == 2**63 - 1:
        print('sys.maxsize == 2**(63) - 1')
    else:
        print('sys.maxsize == {}'.format(sys.maxsize))


if __name__ == '__main__':
    main()

See also #63 (comment)

from nox.

theacodes avatar theacodes commented on July 27, 2024

@dhermes it seems with #100 this is no longer relevant, am I missing something?

from nox.

dhermes avatar dhermes commented on July 27, 2024

#100 only added architecture support on Windows

from nox.

theacodes avatar theacodes commented on July 27, 2024

So what needs to be done for OS X? Is 32bit even relevant for OS X?

from nox.

dhermes avatar dhermes commented on July 27, 2024

I don't really think so. NumPy has dropped support for 32-bit binaries on OS X.

from nox.

theacodes avatar theacodes commented on July 27, 2024

I'm going to close this, then.

from nox.

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.