Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
5baab77d
Commit
5baab77d
authored
Aug 18, 2016
by
Matthew Brett
Browse files
Document build from pypi archive
parent
34745fd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
6 deletions
+26
-6
README.rst
README.rst
+26
-6
No files found.
README.rst
View file @
5baab77d
...
@@ -76,9 +76,9 @@ following bash scripts:
...
@@ -76,9 +76,9 @@ following bash scripts:
See ``docker_build_wrap.sh`` to review the order of script sourcing.
See ``docker_build_wrap.sh`` to review the order of script sourcing.
See the definition of ``build_
wheel`` in ``multibuild/travis_linux_steps.sh``
See the definition of ``build_
multilinux`` in
for the environment variables passed from
travis-ci to the Manylinux1
``multibuild/travis_linux_steps.sh``
for the environment variables passed from
container.
travis-ci to the Manylinux1
container.
Once in the container, after sourcing the scripts above, the wrapper runs the
Once in the container, after sourcing the scripts above, the wrapper runs the
real ``build_wheel`` function, which now comes (by default) from
real ``build_wheel`` function, which now comes (by default) from
...
@@ -113,9 +113,14 @@ default the function that is run on OSX, and in the Manylinux container for
...
@@ -113,9 +113,14 @@ default the function that is run on OSX, and in the Manylinux container for
the build phase, is defined in ``multibuild/common_utils.sh``. You can
the build phase, is defined in ``multibuild/common_utils.sh``. You can
override the default function in the project ``config.sh`` file (see below).
override the default function in the project ``config.sh`` file (see below).
Typically, you can get away with leaving the default ``build_wheel`` function,
If you are building a wheel from pypi, rather than from a source repository,
but you may need to define a ``pre_build`` function in ``config.sh``. The
you can use the ``build_index_wheel`` command, again defined in
default ``build_wheel`` function will call the ``pre_build`` function, if
``multibuild/common_utils.sh``.
Typically, you can get away with leaving the default ``build_wheel`` /
``build_index_wheel`` functions to do their thing, but you may need to define
a ``pre_build`` function in ``config.sh``. The default ``build_wheel`` and
``build_index_wheel`` functions will call the ``pre_build`` function, if
defined, before building the wheel, so ``pre_build`` is a good place to build
defined, before building the wheel, so ``pre_build`` is a good place to build
any required libraries.
any required libraries.
...
@@ -262,6 +267,21 @@ To use these scripts
...
@@ -262,6 +267,21 @@ To use these scripts
--no-update-index
--no-update-index
wheels
wheels
The example above is for a project building from a git submodule. If you
aren't building from a submodule, but want to use ``pip`` to build from a
source archive on https://pypi.org or similar, replace the first few lines
of the ``.travis.yml`` file with something like::
env:
global:
# Instead of REPO_DIR, BUILD_COMMIT
- PROJECT_SPEC="tornado==4.1.1"
then your ``install`` section could look something like this::
install:
- build_index_wheel $PROJECT_SPEC
* Next create a ``config.sh`` for your project, that fills in any steps you
* Next create a ``config.sh`` for your project, that fills in any steps you
need to do before building the wheel (such as building required libraries).
need to do before building the wheel (such as building required libraries).
You also need this file to specify how to run your tests::
You also need this file to specify how to run your tests::
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment