[CI] Changed triton-nightly to --pre triton (#78)

The solution proposed in #77 can create namespace conflicts when triton and triton-nightly have both been pip installed. Therefore, this PR is moving nightly releases to pre-releases in the main triton index.
This commit is contained in:
Philippe Tillet
2021-03-23 03:32:51 -04:00
committed by Philippe Tillet
parent 2f80a98776
commit b352bc79e3
4 changed files with 4 additions and 7 deletions

View File

@@ -8,7 +8,7 @@ variables:
value: venv value: venv
# Run CI when something pushed to master # Run CI when something pushed to master
# trigger: [ master ] trigger: none
# Run CI when a PR is created or updated from master # Run CI when a PR is created or updated from master
pr: pr:
- master - master

View File

@@ -17,7 +17,7 @@ jobs:
pip3 install twine pip3 install twine
displayName: Install dependencies displayName: Install dependencies
- bash: | - bash: |
sed -i 's/name\=\"triton\"/name="triton-nightly"/g' python/setup.py #sed -i 's/name\=\"triton\"/name="triton-nightly"/g' python/setup.py
sed -i -r "s/version\=\"(.*)\"/version=\"\1-dev`date '+%Y%m%d'`\"/g" python/setup.py sed -i -r "s/version\=\"(.*)\"/version=\"\1-dev`date '+%Y%m%d'`\"/g" python/setup.py
echo "" >> python/setup.cfg echo "" >> python/setup.cfg
echo "[build_ext]" >> python/setup.cfg echo "[build_ext]" >> python/setup.cfg

View File

@@ -10,7 +10,7 @@ You can install the latest nightly release of Triton from pip:
.. code-block:: bash .. code-block:: bash
pip install triton-nightly pip install -U --pre triton
-------------- --------------

View File

@@ -97,10 +97,7 @@ setup(
long_description="", long_description="",
packages=["triton", "triton/_C", "triton/ops", "triton/ops/blocksparse"], packages=["triton", "triton/_C", "triton/ops", "triton/ops/blocksparse"],
install_requires=["numpy", "torch"], install_requires=["numpy", "torch"],
package_data={ package_data={"triton/ops": ["*.c"], "triton/ops/blocksparse": ["*.c"]},
"triton/ops": ["*.c"],
"triton/ops/blocksparse": ["*.c"]
},
include_package_data=True, include_package_data=True,
ext_modules=[CMakeExtension("triton", "triton/_C/")], ext_modules=[CMakeExtension("triton", "triton/_C/")],
cmdclass={"build_ext": CMakeBuild}, cmdclass={"build_ext": CMakeBuild},