Commit Graph

57 Commits

Author SHA1 Message Date
Davis King ef4b7a0ef2 Added -G option to setup.py that sets cmake's generator. 2018-02-12 07:34:07 -05:00
Davis King 54723defbe Tweaked the way we compute the number of threads to use when building. 2018-01-24 08:02:33 -05:00
Davis King 344165cdff Updated python version list. 2018-01-22 19:56:46 -05:00
Davis King ae62f87f87 Fixed for python3 2018-01-17 19:12:01 -05:00
Davis King eb90fe634d A bit of cleanup 2018-01-17 18:21:48 -05:00
Davis E. King fa14909e4d
Set build parallelism correctly for travis-ci 2018-01-17 16:51:09 -05:00
Davis King a602126be3 Made picking of the number of compile threads more robust. 2018-01-17 08:02:43 -05:00
Davis King d984a1f42d Added more logging to setup.py 2018-01-17 07:37:21 -05:00
Davis King 88dd3e4daf Set the number of cores to use for building based on system properties. 2018-01-16 19:41:17 -05:00
Davis King 635747e654 Cleaned up setup.py and the python cmake script. 2018-01-16 07:24:47 -05:00
Davis King 21425b156f Made setup.py more robust in how it enables 64bit visual studio compiles. It should now
be more future proof and in particular correctly enable 64bit compiles in visual studio 2017
when appropriate.
2017-12-27 17:03:20 -05:00
visionworkz ac292309c1 Exposed jitter_image in Python and added an example (#980)
* Exposed jitter_image in Python and added an example

* Return Numpy array directly

* Require numpy during setup

* Added install of Numpy before builds

* Changed pip install for user only due to security issues.

* Removed malloc

* Made presence of Numpy during compile optional.

* Conflict

* Refactored get_face_chip/get_face_chips to use Numpy as well.
2017-12-08 09:59:27 -05:00
Davis King ed9199ecbf saving more pypi notes 2017-08-27 20:04:31 -04:00
Ian Philips 8de627e105 added check for libpython_version#m.dylib present in some virtual environments (#687) 2017-07-06 13:02:47 -04:00
Davis King e8e064e534 Added --compiler-flags to setup.py so you can pass options directly to gcc. 2017-05-30 17:18:04 -04:00
Davis King 5f5684a8fb Made python library and header detection more robust 2017-01-16 06:54:20 -05:00
Davis King de13fdeb5a Made setup.py always set PYTHON_INCLUDE_DIR and PYTHON_LIBRARY based on
distutils environment variables for all versions of python, not just conda.
2016-12-27 09:21:38 -05:00
hiiwave c22bedc1c6 Modify setup.py so that it can be installed under conda environment (#377) 2016-12-27 08:18:49 -05:00
Davis King 79425443fe Fixed wrong README filename due to recent change. 2016-10-09 08:39:06 -04:00
Vladimir Sinitsin 5582530bb3 Fix building on win32 with 32bit architecture (#261)
Now PYTHON_INCLUDE_DIR and PYTHON_LIBRARY setting up correctly for both 32/64 bit architectures
2016-09-29 21:56:13 -04:00
Davis King fed1e8e292 Added more comments about making python package 2016-09-29 21:32:49 -04:00
AbdealiJK 8da4053c30 setup.py: Don't fail if pip fails in cmake err msg
When cmake is not found, the error message suggests what to do to
install cmake. But if `distro` is not found and cannot be installed,
the distro specific error message cannot be shown. Hence, we simply
ignore this and continue on.

Also, make the pip install quiet so that if there is an error message
in that, the user does not get confused by it.
2016-06-11 08:57:20 +05:30
AbdealiJK faff10f853 setup.py: Provide instructions to install cmake
If cmake_path is not found, either cmake is not installed
or cmake is not in the PATH. Hence, we also give instructions
on how to install cmake if the path is not found.
2016-06-09 11:37:53 +05:30
jimreesman 0b3cc3c4a1 add import of get_config_var 2016-02-11 11:32:47 -05:00
jimreesman 6411b5f65d detect OS X, and query sysconfig for libdir 2016-02-11 10:17:13 -05:00
Pau Gargallo 05e2471555 Decode message only if encoding is known
When python does not know the encoding of stdout, sys.stdout.encoding
is None.  Then calling decode(None) raises an exception.  We just
skip decoding when the encoding is unknown.
2016-01-20 12:06:17 +01:00
Yu Kobayashi d35104ed3c sys.stdout.encoding instead of latin-1 in setup.py
Please use sys.stdout.encoding instead of latin-1 in setup.py.
This is necessary for non English OS.
2016-01-14 11:07:18 +09:00
Davis King eca57b467c Fixed README path 2015-10-27 18:29:05 -04:00
Davis King 5d377ceb6d Added a overview comment at the top of the file. 2015-10-27 08:22:33 -04:00
Davis King 99a91ce680 The last commit didn't really fix the bug. This one seems to do a better job :) 2015-09-28 22:40:02 -04:00
Davis King b51b2857f3 Fixed a bug in setup.py that caused it to not print all cmake's outputs to the
screen.  In particular, that caused cmake's error messsages to be truncated if
the build failed.
2015-09-28 22:14:32 -04:00
Davis King e16b0f8d21 Minor tweaks to make PyPi happy. 2015-09-27 11:59:58 -04:00
Davis King ed64455109 Fixed error in setup.py 2015-09-26 22:48:31 -04:00
Davis King f02f06355b Removed the old version keeping files in the docs folder now that the
dlib/CMakeLists.txt file is keeping the version numbers.  Also changed all
relevant scripts to grab the version information from CMakeLists.txt.
2015-09-26 22:24:51 -04:00
Ehsan Azarnasab 5c06db0e35 add python 3 as supported in the classifiers 2015-08-27 19:07:28 -07:00
Ehsan Azarnasab 2fee9b3915 use newest visual studio as generator if multiple installed 2015-08-27 08:22:09 -07:00
Ehsan Azarnasab 61ec7aa862 if no cmake generator is set use same logic as cmake to find default buid generator but use Win64 if the build is for 64bit Python 2015-08-26 20:03:49 -07:00
Ehsan Azarnasab cdce208ef1 cannot automatically select Win64 toolchain on Windows by setting simple flags 2015-08-26 17:15:40 -07:00
Ehsan Azarnasab 6e2ed37f76 find 64bit Python libraries on 64bit Windows when cmake is 32bit 2015-08-26 14:53:13 -07:00
Ehsan Azarnasab 1c6ba8a1b1 fix argument parsing, also there is no trim, should have used strip. 2015-08-24 09:11:55 -07:00
Ehsan Azarnasab e469105178 use Python's architecture to give cmake a clue to generate the right config 2015-08-23 10:53:13 -07:00
Ehsan Azarnasab 8e2ec4cc6a option to pass build system generator to cmake 2015-08-23 10:02:20 -07:00
Ehsan Azarnasab 2f7958e4f9 decode process output as latin-1 for Python3 to also work 2015-08-22 12:59:42 -07:00
Ehsan Azarnasab fd75d43efb simplify logic 2015-08-21 13:56:34 -07:00
Ehsan Azarnasab d1bafb5ae0 simplify passing cmake yes and no options. 2015-08-21 13:54:49 -07:00
Ehsan Azarnasab 34e73a6b6d make sure only relevant platform artifacts are packaged.
avoid foreign artifacts potentially left over from VM builts.
2015-08-21 11:31:16 -07:00
Ehsan Azarnasab acf61103b6 set sid only on posix 2015-08-20 20:01:54 -07:00
Ehsan Azarnasab 08fb925b34 always clean up dist folder to have a clean sdist and clean builds 2015-08-20 18:03:18 -07:00
Ehsan Azarnasab 2272be1f29 fix argument parsing for cmake option 2015-08-20 14:52:42 -07:00
Ehsan Azarnasab eccfd6e57b fix argument parsing for cmake option 2015-08-20 14:51:21 -07:00