0% found this document useful (0 votes)
212 views3 pages

Conan

Conan.io is an open-source package manager for C and C++ applications. It allows developers to package and distribute binaries for different platforms and configurations, simplifying dependency management. Users can install Conan from binaries, pip, Homebrew (on OSX), or by cloning its GitHub repository and building from source on Windows, Linux, or MacOS. The README provides instructions for setting up Conan and running its tests on different platforms.

Uploaded by

Sujat Kamal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
212 views3 pages

Conan

Conan.io is an open-source package manager for C and C++ applications. It allows developers to package and distribute binaries for different platforms and configurations, simplifying dependency management. Users can install Conan from binaries, pip, Homebrew (on OSX), or by cloning its GitHub repository and building from source on Windows, Linux, or MacOS. The README provides instructions for setting up Conan and running its tests on different platforms.

Uploaded by

Sujat Kamal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

conan-io / ccoonnaann

Dismiss
JJooiinn G
GiittH
Huubb ttooddaayy
GitHub is home to over 20 million developers working together to host
and review code, manage projects, and build software together.

SSiiggnn uupp

Conan.io - The open-source C/C++ package manager https://conan.io


# package-manager # cpp # c # cplusplus # multi-platform # cmake

11,,333344 commits 6655 branches 6611 releases 7744 contributors MIT

ddeevveelloopp N
Neew
w ppuullll rreeqquueesstt FFiinndd ffiillee C
Clloonnee oorr ddoow
wnnllooaadd

m
meem
msshhaarrddeedd committed with llaassoottee dont write bytecode and tests outputs (#1835)
Latest commit d210659 3 hours ago

.ci nosetests multiprocess CI (#1759) 18 days ago

conans dont write bytecode and tests outputs (#1835) 3 hours ago

.codecov.yml Feature/conan logger (#884) 8 months ago

.coveragerc Feature/codecov (#788) 10 months ago

.gitignore Feature/conan get (#1465) 3 months ago

.travis.yml Travis: Less builds if not release or master (#1769) 14 days ago

LICENSE.md Feature/settings override (#689) 10 months ago

README.rst README tests 4 months ago

__init__.py Initial commit 2 years ago

appveyor.yml Appveyor simpified for features and develop (#1088) 7 months ago

contributors.txt Feature/manifest path (#1772) 14 days ago

pyinstaller.py Fixing package creation with new Pylint (#1776) 13 days ago

pylint.cnf Initial commit 2 years ago

setup.py Extract build-info from traces (#969) 8 months ago

R
REEAAD
DMMEE..rrsstt

C
Coonnaann

A distributed, open source, package manager.

m
maasstteerr ((lliinnuuxx//oossxx)) ddeevveelloopp ((lliinnuuxx//oossxx)) m
maasstteerr ((w
wiinnddoow
wss)) ddeevveelloopp ((w
wiinnddoow
wss))

build passing build passing Build status4

C
Coovveerraaggee ddeevveelloopp C
Coovveerraaggee m
maasstteerr C
Coovveerraaggee ggrraapphh

S
Seettuupp

FFrroom
m bbiinnaarriieess
We have installers for most platforms here but you can run ccoonnaann from sources if you want

FFrroom
m ppiipp
Conan is compatible with Python 2 and Python 3.

Install pip following pip docs


Install conan:

$ pip install conan

FFrroom
mHHoom
meebbrreew
w ((O
OSSxx))
Install Homebrew following brew homepage.

$ brew update
$ brew install conan

FFrroom
m ssoouurrccee
You can run ccoonnaann client and server in Windows, MacOS, and Linux.

IInnssttaallll ppyytthhoonn aanndd ppiipp,, sseeaarrcchh iinn ggooooggllee iinnssttrruuccttiioonnss ffoorr yyoouurr ooppeerraattiinngg ssyysstteem
m..

C
Clloonnee ccoonnaann rreeppoossiittoorryy

$ git clone https://github.com/conan-io/conan.git

IInnssttaallll ppyytthhoonn rreeqquuiirreem


meennttss

For running the client:

$ sudo pip install -r conans/requirements.txt

In OSX you should also install:

$ sudo pip install -r conans/requirements_osx.txt

Server:

$ sudo apt-get install python-dev


$ sudo pip install -r conans/requirements_server.txt

Development (for running the tests):

$ sudo pip install -r conans/requirements_dev.txt

If you are in Windows, using sudo is not required.

R
Ruunnnniinngg tthhee tteessttss

Make sure that the Python requirements for testing have been installed, as explained above.

Before you can run the tests, you need to set a few environment variables first.

$ export PYTHONPATH=$PYTHONPATH:$(pwd)

On Windows it would be (while being in the conan root directory):

$ set PYTHONPATH=.

Ensure that your cmake has version 2.8 or later. You can see the version with the following command:

$ cmake --version

The appropriate values of CONAN_COMPILER and CONAN_COMPILER_VERSION depend on your operating system and your
requirements.

These should work for the GCC from build-essential on Ubuntu 14.04:

$ export CONAN_COMPILER=gcc
$ export CONAN_COMPILER_VERSION=4.8

These should work for OS X:

$ export CONAN_COMPILER=clang
$ export CONAN_COMPILER_VERSION=3.5

Finally, there are some tests that use conan to package Go-lang libraries, so you might nneeeedd ttoo iinnssttaallll ggoo--llaanngg in your
computer and add it to the path.

You can run the actual tests like this:

$ nosetests .
There are a couple of test attributes defined, as slow , or golang that you can use to filter the tests, and do not execute
them:

$ nosetests . -a !golang

A few minutes later it should print OK :

..............................................................................................................................
----------------------------------------------------------------------
Ran 146 tests in 50.993s

OK

To run specific tests, you can specify the test name too, something like:

$ nosetests conans.test.integration.flat_requirements_test --nocapture

The --nocapture argument can be useful to see some output that otherwise is captured by nosetests.

C
Crreeaattee aa llaauunncchheerr

Conan entry point is "conans.conan.main" module. Fill the absolute path of the cloned repository folder:

#!/usr/bin/env python
import sys
sys.path.append('/home/user/conan') # EDIT!!

from conans.conan import main


main(sys.argv[1:])

If you are a Windows user, you can name this file "conan.py" and create a file "conan.bat" that calls the python module:

CALL python C:/Users/user/conan.py %*

Then add that 'conan' file to your PATH and you are ready:

$ conan --help

Conan commands. Type $conan "command" -h for help


build calls your project conanfile.py "build" method.
export copies a conanfile.py and associated (export) files to your local store,
install install in the local store the given requirements.
remove Remove any folder from your local/remote store
search show local/remote packages
test build and run your package test. Must have conanfile.py with "test"
upload uploads a conanfile or binary packages from the local store to any remote.
user shows or change the current user

LLiicceennssee
MIT LICENSE

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy