-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation Instructions are confusing to people not familiar with pip #1613
Comments
Works for me on windows (win7-64), without any issues.
|
@msink Python 3's pip is called |
There are both
And even
I didn't rename anything in python 3.6 directory :) |
OK I got it to run on Window 10 too, it actually was easier than on Debian: The Python 3 installer has some very bad default settings, first you need to check [ x ] Add Python to PATH The default installation is only for the current user, and is installed into the App Directory. Even though you add Python to the PATH variable, after installing meson with pip3, meson will not be in the Path. If you install to all users, (Advanced Tab on the installer) meson will be in the path, but you need a command Prompt with eleveated privileges to install meson. Either way
will install meson correctly. After installing Ninjna into a directory in the PATH everything seems to work. Probably because I have Visual Studio already Installed? Not sure what compiler it would use otherwise. However after python is installed correctly, it seems to work fine on windows. Thanks for the heads up. |
Does |
It is not installed by the package, it is only available in the source repository. The reason for this is that it s not reliable enough to ship. |
I mostly (no longer) have build problems with meson as such; with ninja also not that much. But I miss some easy options, simply because I am so used to the GNU Autoconfigure way. I give you an example. I just compiled dconf 0.27.1.
I got a warning... which I assume is no problem, but it is still confusing. I see 90/90 and I also see bin/dconf. I assume it has compiled successfully but ... do I have any --prefix option? Any "make" and "make install" step? Probably somewhere. Meson/Ninja people who are so used to it, can figure out, but poor me doesn't really have any idea about this. So what I do now is to ... manually relocate bin/dconf to where it ought to reside. :\ :/ dconf is just one example, this by now probably applies to most of the gnome3 stack. Perhaps it is documented somewhere, but I'd wish that for the --prefix, "make" and "make install"-like steps, it would be super-trivial on the commandline. Just to get the equivalent options. (That also includes ./configure --help like options... cmake has a similar problem, it was hard to find out what options cmake wants... took me a while to find out that --prefix is equivalent to -DCMAKE_INSTALL_PREFIX= ... the rest is still guessing by me mostly, or trying to wait until the LFS/BLFS folks got the right options and just using it from them, then). |
Sure,
|
I think the equivalent of |
@FreeApophis , |
I agree with @JithinPavithran. |
Thanks for this bug report, I wouldn't have figured out how to get this working otherwise! |
This is a very bad bug that you install following instructions : It is desperating. |
This is not a bug: |
ok, sorry for the noise |
Detailed instructions for how to install meson are now available at https://mesonbuild.com/Getting-meson.html and everything on this PR has been addressed there AFAIK. Please open new issues for improving that as required. Thanks for all the input here. |
@nirbheek there is one more document should be corrected https://mesonbuild.com/Quick-guide.html |
This is still an issue, and you closed it without actuall fixing it.
The thing is, those both do the same thing. You have to use
Otherwise, meson doesn't seem to work. You're probably thinking that we should just know to use sudo, but that isn't the case. |
With |
I completely commiserate with the OP. I have downloaded meson-0.56.0: Successfully unpacked it: now, lookiing for INSTALL.txt, nope, ok README.md will do, right? Not even close. README seems to contain information for installing prebuilt meson package using pip or ninja. Hrmm. clearly, I'm trying to build meson from source; mesonbuild dir right? Nope needs a 'pristine' directory for that... Ok, I'm hip to the notion that you might need to bootstrap a build system. So how do I build meson from source? |
https://mesonbuild.com/Getting-meson.html#downloading-meson
Seems pretty fair to me. Other methods include:
On debian:
What on earth is a "pristine" directory, and why do you think Once you do get pip installed...
Look at that, pip supports "Local project directories" via "pip install [options] [-e] ". |
I proposed to mention |
Having just been through this, I feel I can safely say that the documentation fix does not really fix the user experience when installing via pip install. If the goal is the best user experience, my 3 cents is, after "pip install meson", in any flavor, I should have the meson command in my path. Python offers a way to make make this happen via script. I implemented a working example of this here Not suggesting it would be as easy to do as my simple little utility. Simply suggesting that effort should be spent in this area if the best UX is the goal. As the original poster states.. nothing turns off a user faster than having to do extra work on an install. In the ideal UX, installs should "just work". Just my opinion. I love the concept and hope the project goes on to great success. |
Meson already does exactly this: Lines 37 to 39 in b78d33f
If you are still not getting the meson command in your path, then something has gone wrong somewhere (but this infrastructure belongs entirely to pip, not Meson.)
|
I appreciate the idea of having a build system which does not suck. However the installation of this build sucks badly. After 2 Hours fiddling I still cannot run the meson command on windows and have a great deal of unnecessary knowledge about the python package manager before beeing able to run mason on debian.
I See this ticket as a starting point for help for others frustrated with the installation:
1.) Download
There are basically no instructions on how to install, a completley unnecessary link to the sources and incomplete instructions for a programming language installation and a packet manager.
The linux instructions are less then minimal and there is not a single word for Mac or Windows.
My Tip: Ignore the Download-Page its completley useless.
2.) Installation
After clicking into the documentation the "Quick Guide" or "Using Meson" is the only place which bothers to handle the installation, in just so many words.
2.1) Python...
I want to build C++ or C# - and obviously it is required to know python to use this build system.
There are installation instructions for ubuntu, which are incomplete too. Installing the python3 package does not install pip3.
answers with: command not found
Of course I can google and as a developer I can easily solve such problems after some reasearch, but it shows how much the instructions really suck. They are not only lacking, they are incomplete and misleading. And I lost now 2 hours of my time where I could have learned the syntax instead of fiddling with tools which are only a dependency.
On Windows it is even worse, I couldn't get pip running so far. And beeing able to cross-compile was the main reason I looked into this project. So far I am not impressed. But that was yesterday, and I thought linux probably is the better platform to start.
2.2) Paths...
After running:
I saw the installation successfully installing into ~/.local/lib/python3.4/site-packages/
Now I got angry enough to write this Bug. I also found #465 which addresses the issue. The Problem BTW is. that the meson executable is placed in "~/.local/bin/meson" which is not in the PATH. There is actually a bug hanging for pip ( pypa/pip#3813 ) with exactly this issue.
So to install meson, I need to know know how to install python and a package manager which is not even mentioned besides a command which does not work, circumvent bugs for their package manager before finally beeing able to run it for the first time.
3.) Running
So we have meson running with
Meson encountered an error:
Could not detect Ninja v1.6 or newer
Debian is very stable, so this one was to be expected, even though I am running jessie.
Still, each step of the road was blocked, nothing worked out of the box. This is very frustrating.
OK build ninja from source and copy it to /usr/bin
At this point, I am not sure if anybody uses meson outside the Python-Ubuntu-Club.
BUT I got it at least working on debian. If anyone has better instructions for windows I will gladly try them.
After the installation, it works surprisingly smooth...
The text was updated successfully, but these errors were encountered: