Coder Social home page Coder Social logo

Python v3.5 about gdspy HOT 9 CLOSED

heitzmann avatar heitzmann commented on August 19, 2024
Python v3.5

from gdspy.

Comments (9)

heitzmann avatar heitzmann commented on August 19, 2024

Sounds great @johnlb! If you could send the wheel I'll make it available with the current release.

from gdspy.

johnlb avatar johnlb commented on August 19, 2024

Looks like you're using distutils, so I think I can't make a wheel? Instead, what's your current build process? I can just repeat that.

Also, looks like master is ahead of the most recent release (0.7.1). Would you rather I use an older commit inline with 0.7.1 or just build from the head?

from gdspy.

heitzmann avatar heitzmann commented on August 19, 2024

I use the following the compile an installation file for both 32 and 64 versions with Microsoft SDK 7.1 (python version 2.7 needs the 7.0):

set DISTUTILS_USE_SDK=1
setenv /x64 /release
C:\Python\python.exe setup.py build --plat-name=win-amd64 bdist --format=wininst
setenv /x86 /release
C:\Python_32\python.exe setup.py build --plat-name=win32 bdist --format=wininst

I'm on linux, so I'll probably investigate this in more detail only for the next release.

As for the version, it would be better to compile the 0.7.1 version, so that all installers behave the same.

from gdspy.

johnlb avatar johnlb commented on August 19, 2024

Sorry for the delay, I've actually been having some trouble with the build (if its not one thing...). Should get it worked out soon.

from gdspy.

johnlb avatar johnlb commented on August 19, 2024

Here's the 0.7.1 release. I'm not able to compile the 0.8.1 release (either myself or through pip). It is getting caught on the clipper library:

building 'gdspy.clipper' extension
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -IC:\Users\John\AppData\Local\Programs\Python\Python35-32\include -IC:\Users\John\AppData\Local\Programs\Python\Python35-32\include /EHsc /Tpgdspy/clipper.cpp /Fobuild\temp.win-amd64-3.5\Release\gdspy/clipper.obj
clipper.cpp
gdspy/clipper.cpp(4750): error C2065: 'M_PI': undeclared identifier
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe' failed with exit status 2

gdspy-0.7.1-py3.5.zip

from gdspy.

johnlb avatar johnlb commented on August 19, 2024

Turns out, the fix was simple. Had to add "#define _USE_MATH_DEFINES" to clipper.hpp. Will send a pull request in a sec.

Here is 0.8.1

gdspy-0.8.1-py3.5.zip

from gdspy.

heitzmann avatar heitzmann commented on August 19, 2024

Thanks @johnlb! I'll merge your chengaes as well.

from gdspy.

aloter avatar aloter commented on August 19, 2024

Thank you both for providing the wheel, but I for some reason it didn't work for me.
I have Python 3.5 64bit (Windows), after wheel install I get:

ImportError: cannot import name 'boolext'

As above the issue was

gdspy/clipper.cpp(4750): error C2065: 'M_PI': undeclared identifier

I tried the suggested fix above, and it worked for me. When building I got a few warnings, but gdspy was installed.
Not sure why the precompiled files didn't work. Let me know if you'd like to debug.

from gdspy.

johnlb avatar johnlb commented on August 19, 2024

Hey -

Sorry for the delay. I'm too busy this week, but I'll take a look at generating a new binary early next week.

from gdspy.

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.