Commit Graph

76 Commits

Author SHA1 Message Date
Davis King 3162f93c5d Revert "Add cmake back as a pip dependency."
This reverts commit 8b9d04390c.

Reverting this because the cmake pip pakage is still busted.  I've been
getting messages from many people about how it's breaking their
systems/installs.
2021-02-20 07:22:58 -05:00
Davis King 8b9d04390c Add cmake back as a pip dependency.
This dependency was explicitly removed two years ago because pip was
installing a broken cmake on some systems.  I'm adding the dependency
back in the hope that the pip copy of cmake has been fixed on all
systems by this point.
2021-02-15 19:57:57 -05:00
Davis King 869097c809 Make setup.py errors about cmake not being installed more readable 2021-01-16 10:13:19 -05:00
Davis King 7fcb6c285d Add an __init__.py file so we can add paths to CUDA libs on windows. 2020-06-07 16:42:44 -04:00
Davis King 22402e99a0 Revert "Fixed pytest broken dependencies"
Apparently pytest is still sort of busted.

This reverts commit 5e63d01544.
2019-06-02 09:36:16 -04:00
Davis King 5e63d01544 Fixed pytest broken dependencies 2019-06-02 08:00:50 -04:00
Davis King b892df8232 Removed --yes option from setup.py since it has long been a noop and its presence just confuses users. 2019-03-08 07:51:33 -05:00
Davis King 23f874d6e3 Fixed pytest not working with python 2.7. So turning travis tests back on for that version of python. 2019-02-20 08:30:38 -05:00
Davis King 16a1056916 Removing the install_requires cmake from setup.py because the pip cmake package is hopelessly busted at the moment. 2019-02-20 07:54:42 -05:00
Davis King 027e7faf4e Add cmake as a pip install dependency. 2019-01-09 09:07:52 -05:00
Davis E. King a85a53ce69
See if this unbreaks appveyor 2018-11-14 07:26:36 -05:00
Davis King 106c905b7f Added a comment 2018-06-03 10:53:04 -04:00
Davis King 8402c9ee90 make pypi not complain about long description. 2018-05-26 13:30:04 -04:00
Davis King f2cb001c86 Improved error messages. 2018-05-23 13:00:27 -04:00
Davis King 827dd0f811 updated pypi upload instructions. 2018-05-19 20:53:40 -04:00
Davis King a37284fd42 Flush to stdout so that print messages appear where you would expect relative
to output from the subprocesses.
2018-05-06 15:19:38 -04:00
Davis King 5a36842638 Print python version in build log. 2018-05-06 14:40:09 -04:00
Kagami Hiiragi ad88bbe8c6 Allow to set arbitrary cmake opts from setup.py (#1189)
Fixes #1188
2018-03-09 19:14:12 -05:00
Davis King ad414af777 Made pytest ignore docs and dlib folders. 2018-02-16 09:29:15 -05:00
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