Code Monkey home page Code Monkey logo

Comments (5)

flothesof avatar flothesof commented on May 28, 2024

Hi,
I have been able to install pygalmesh on windows, doing a little bit of hacking to get it to work.

My instructions rely on the use of conda and the conda-forge channel (related to my work on #81).

It consists of installing the dependencies using conda-forge and then of a little patching to get the paths right. I've done this in a clean conda environment so as to try to make it as reproducible as possible.

installing dependencies

conda create -n pygalmesh_test python=3.7
conda activate pygalmesh_test
conda install -c conda-forge pybind11 mpir mpfr eigen cgal-cpp

cloning the source and hacking it a little bit

git clone https://github.com/nschloe/pygalmesh.git
cd pygalmesh
set EIGEN_INCLUDE_DIR=c:\Anaconda3\envs\pygalmesh_test\Library\include\eigen3
#in setup.py add the last line to include_dirs
	include_dirs=[
				os.environ.get("EIGEN_INCLUDE_DIR", "/usr/include/eigen3/"),
				# Path to pybind11 headers
				get_pybind_include(),
				get_pybind_include(user=True),
	--> this		r"C:\Anaconda3\envs\pygalmesh_test\Library\include",
			],
#and also after the last comma at the same level than include_dirs			
	extra_link_args = ["/LIBPATH:C:\Anaconda3\envs\pygalmesh_test\Library\lib"],		
# finally on the command line
pip install .

Of course, if your path to the conda environment is different, you have to adapt this "recipe" to your own case.

Regards,
Florian

from pygalmesh.

nschloe avatar nschloe commented on May 28, 2024

Let me point everyone to https://anaconda.org/conda-forge/pygalmesh. (Thanks @flothesof!)

from pygalmesh.

sama2689 avatar sama2689 commented on May 28, 2024

Will using the conda-forge method still require installation of CGAL and Eigen separately? Or are these installed by conda?

from pygalmesh.

nschloe avatar nschloe commented on May 28, 2024

I think it's pulled in automatically.

from pygalmesh.

flothesof avatar flothesof commented on May 28, 2024

To elaborate a little more on that answer: the conda-forge version of pygalmesh knows about its dependencies (such as CGAL and Eigen) which are installed as binary packages (no compilation needed).

from pygalmesh.

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.